Percentage of total database.......... 2.4% Number of entries..................... 4 Bytes of storage consumed............. 2048 Bytes of payload...................... 50 2.4% Average payload per entry............. 12.50 Average unused bytes per entry........ 492.00 Fragmentation......................... 0.0% Maximum payload per entry............. 17 Entries that use overflow............. 0 0.0% Primary pages used.................... 2 Overflow pages used................... 0 Total pages used...................... 2 Unused bytes on primary pages......... 1968 96.1% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 1968 96.1% *** Table SYSTEMINFO w/o any indices ********************************* Percentage of total database.......... 1.2% Number of entries..................... 2 Bytes of storage consumed............. 1024 Bytes of payload...................... 28 2.7% Average payload per entry............. 14.00 Average unused bytes per entry........ 490.00 Maximum payload per entry............. 17 Entries that use overflow............. 0 0.0% Primary pages used.................... 1 Overflow pages used................... 0 Total pages used...................... 1 Unused bytes on primary pages......... 980 95.7% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 980 95.7% *** Indices of table SYSTEMINFO ************************************** Percentage of total database.......... 1.2% Number of entries..................... 2 Bytes of storage consumed............. 1024 Bytes of payload...................... 22 2.1% Average payload per entry............. 11.00 Average unused bytes per entry........ 494.00 Maximum payload per entry............. 11 Entries that use overflow............. 0 0.0% Primary pages used.................... 1 Overflow pages used................... 0 Total pages used...................... 1 Unused bytes on primary pages......... 988 96.5% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 988 96.5% *** Table VERSIONS *************************************************** Percentage of total database.......... 1.2% Number of entries..................... 3 Bytes of storage consumed............. 1024 Bytes of payload...................... 62 6.1% Average payload per entry............. 20.67 Average unused bytes per entry........ 314.00 Maximum payload per entry............. 35 Entries that use overflow............. 0 0.0% Primary pages used.................... 1 Overflow pages used................... 0 Total pages used...................... 1 Unused bytes on primary pages......... 942 92.0% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 942 92.0% *** Table SQLITE_MASTER ********************************************** Percentage of total database.......... 3.5% Number of entries..................... 8 Bytes of storage consumed............. 3072 Bytes of payload...................... 1351 44.0% Average payload per entry............. 168.88 Average unused bytes per entry........ 193.75 Average fanout........................ 2.00 Fragmentation......................... 50.0% Maximum payload per entry............. 403 Entries that use overflow............. 0 0.0% Index pages used...................... 1 Primary pages used.................... 2 Overflow pages used................... 0 Total pages used...................... 3 Unused bytes on index pages........... 905 88.4% Unused bytes on primary pages......... 645 31.5% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 1550 50.5% *** Table SQLITE_SEQUENCE ******************************************** Percentage of total database.......... 1.2% Number of entries..................... 4 Bytes of storage consumed............. 1024 Bytes of payload...................... 48 4.7% Average payload per entry............. 12.00 Average unused bytes per entry........ 238.00 Maximum payload per entry............. 13 Entries that use overflow............. 0 0.0% Primary pages used.................... 1 Overflow pages used................... 0 Total pages used...................... 1 Unused bytes on primary pages......... 952 93.0% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 952 93.0% *** Definitions ****************************************************** Page size in bytes The number of bytes in a single page of the database file. Usually 1024. Number of pages in the whole file The number of 1024-byte pages that go into forming the complete database Pages that store data The number of pages that store data, either as primary B*Tree pages or as overflow pages. The number at the right is the data pages divided by the total number of pages in the file. Pages on the freelist The number of pages that are not currently in use but are reserved for future use. The percentage at the right is the number of freelist pages divided by the total number of pages in the file. Pages of auto-vacuum overhead The number of pages that store data used by the database to facilitate auto-vacuum. This is zero for databases that do not support auto-vacuum. Number of tables in the database The number of tables in the database, including the SQLITE_MASTER table used to store schema information. Number of indices The total number of indices in the database. Number of named indices The number of indices created using an explicit CREATE INDEX statement. Automatically generated indices The number of indices used to implement PRIMARY KEY or UNIQUE constraints on tables. Size of the file in bytes The total amount of disk space used by the entire database files. Bytes of user payload stored The total number of bytes of user payload stored in the database. The schema information in the SQLITE_MASTER table is not counted when computing this number. The percentage at the right shows the payload divided by the total file size. Percentage of total database The amount of the complete database file that is devoted to storing information described by this category. Number of entries The total number of B-Tree key/value pairs stored under this category. Bytes of storage consumed The total amount of disk space required to store all B-Tree entries under this category. The is the total number of pages used times the pages size. Bytes of payload The amount of payload stored under this category. Payload is the data part of table entries and the key part of index entries. The percentage at the right is the bytes of payload divided by the bytes of storage consumed. Average payload per entry The average amount of payload on each entry. This is just the bytes of payload divided by the number of entries. Average unused bytes per entry The average amount of free space remaining on all pages under this category on a per-entry basis. This is the number of unused bytes on all pages divided by the number of entries. Fragmentation The percentage of pages in the table or index that are not consecutive in the disk file. Many filesystems are optimized for sequential file access so smaller fragmentation numbers sometimes result in faster queries, especially for larger database files that do not fit in the disk cache. Maximum payload per entry The largest payload size of any entry. Entries that use overflow The number of entries that user one or more overflow pages. Total pages used This is the number of pages used to hold all information in the current category. This is the sum of index, primary, and overflow pages. Index pages used This is the number of pages in a table B-tree that hold only key (rowid) information and no data. Primary pages used This is the number of B-tree pages that hold both key and data. Overflow pages used The total number of overflow pages used for this category. Unused bytes on index pages The total number of bytes of unused space on all index pages. The percentage at the right is the number of unused bytes divided by the total number of bytes on index pages. Unused bytes on primary pages The total number of bytes of unused space on all primary pages. The percentage at the right is the number of unused bytes divided by the total number of bytes on primary pages. Unused bytes on overflow pages The total number of bytes of unused space on all overflow pages. The percentage at the right is the number of unused bytes divided by the total number of bytes on overflow pages. Unused bytes on all pages The total number of bytes of unused space on all primary and overflow pages. The percentage at the right is the number of unused bytes divided by the total number of bytes. ********************************************************************** The entire text of this report can be sourced into any SQL database engine for further analysis. All of the text above is an SQL comment. The data used to generate this report follows: */ BEGIN; CREATE TABLE space_used( name clob, -- Name of a table or index in the database file tblname clob, -- Name of associated table is_index boolean, -- TRUE if it is an index, false for a table nentry int, -- Number of entries in the BTree leaf_entries int, -- Number of leaf entries payload int, -- Total amount of data stored in this table or index ovfl_payload int, -- Total amount of data stored on overflow pages ovfl_cnt int, -- Number of entries that use overflow mx_payload int, -- Maximum payload size int_pages int, -- Number of interior pages used leaf_pages int, -- Number of leaf pages used ovfl_pages int, -- Number of overflow pages used int_unused int, -- Number of unused bytes on interior pages leaf_unused int, -- Number of unused bytes on primary pages ovfl_unused int, -- Number of unused bytes on overflow pages gap_cnt int -- Number of gaps in the page layout ); INSERT INTO space_used VALUES('Entries','Entries',0,173,159,11308,0,0,92,1,15,0, 911,3264,0,6); INSERT INTO space_used VALUES('Payloads','Payloads',0,196,156,38360,0,0,456,1,41 ,0,724,2487,0,19); INSERT INTO space_used VALUES('ResponseBodies','ResponseBodies',0,173,156,15977, 0,0,123,1,18,0,890,1658,0,17); INSERT INTO space_used VALUES('Servers','Servers',0,3,3,372,0,0,210,0,1,0,0,631, 0,0); INSERT INTO space_used VALUES('SystemInfo','SystemInfo',0,2,2,28,0,0,17,0,1,0,0, 980,0,0); INSERT INTO space_used VALUES('Versions','Versions',0,3,3,62,0,0,35,0,1,0,0,942, 0,0); INSERT INTO space_used VALUES('sqlite_master','sqlite_master',0,9,8,1351,0,0,403 ,1,2,0,905,645,0,1); INSERT INTO space_used VALUES('sqlite_sequence','sqlite_sequence',0,4,4,48,0,0,1 3,0,1,0,0,952,0,0); INSERT INTO space_used VALUES('sqlite_autoindex_SystemInfo_1','SystemInfo',1,2,2 ,22,0,0,11,0,1,0,0,988,0,0); COMMIT; C:\Documents and Settings\amy\My Documents\gears\analyzer>^A