/** Disk-Space Utilization Report For C:\Users\Jane\AppData\Local\VirtualStore\Windows\System32\mushclient_prefs.sqlite *** As of 2009-Nov-22 20:12:30 Page size in bytes.................... 1024 Pages in the whole file (measured).... 21 Pages in the whole file (calculated).. 21 Pages that store data................. 17 81.0% Pages on the freelist (per header).... 4 19.0% Pages on the freelist (calculated).... 4 19.0% Pages of auto-vacuum overhead......... 0 0.0% Number of tables in the database...... 4 Number of indices..................... 3 Number of named indices............... 0 Automatically generated indices....... 3 Size of the file in bytes............. 21504 Bytes of user payload stored.......... 7166 33.3% *** Page counts for all tables with their indices ******************** PREFS................................. 12 57.1% CONTROL............................... 2 9.5% WORLDS................................ 2 9.5% SQLITE_MASTER......................... 1 4.8% *** All tables and indices ******************************************* Percentage of total database.......... 81.0% Number of entries..................... 182 Bytes of storage consumed............. 17408 Bytes of payload...................... 9560 54.9% Average payload per entry............. 52.53 Average unused bytes per entry........ 38.19 Average fanout........................ 4.00 Fragmentation......................... 43.8% Maximum payload per entry............. 5069 Entries that use overflow............. 1 0.55% Index pages used...................... 1 Primary pages used.................... 12 Overflow pages used................... 4 Total pages used...................... 17 Unused bytes on index pages........... 991 96.8% Unused bytes on primary pages......... 5959 48.5% Unused bytes on overflow pages........ 0 0.0% Unused bytes on all pages............. 6950 39.9% *** All tables ******************************************************* Percentage of total database.......... 57.1% Number of entries..................... 94 Bytes of storage consumed............. 12288 Bytes of payload...................... 7612 61.9% Average payload per entry............. 80.98 Average unused bytes per entry........ 43.51 Average fanout........................ 4.00 Fragmentation......................... 45.5% Maximum payload per entry............. 5069 Entries that use overflow............. 1 1.1% Index pages used...................... 1 Primary pages used.................... 7 Overflow pages used................... 4 Total pages used...................... 12 Unused bytes on index pages........... 991 96.8% Unused bytes on primary pages......... 3099 43.2% Unused bytes on overflow pages........ 0 0.0% Unused bytes on all pages............. 4090 33.3% *** All indices ****************************************************** Percentage of total database.......... 23.8% Number of entries..................... 88 Bytes of storage consumed............. 5120 Bytes of payload...................... 1948 38.0% Average payload per entry............. 22.14 Average unused bytes per entry........ 32.50 Fragmentation......................... 50.0% Maximum payload per entry............. 35 Entries that use overflow............. 0 0.0% Primary pages used.................... 5 Overflow pages used................... 0 Total pages used...................... 5 Unused bytes on primary pages......... 2860 55.9% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 2860 55.9% *** Table CONTROL and all its indices ******************************** Percentage of total database.......... 9.5% Number of entries..................... 12 Bytes of storage consumed............. 2048 Bytes of payload...................... 209 10.2% Average payload per entry............. 17.42 Average unused bytes per entry........ 148.42 Fragmentation......................... 0.0% Maximum payload per entry............. 40 Entries that use overflow............. 0 0.0% Primary pages used.................... 2 Overflow pages used................... 0 Total pages used...................... 2 Unused bytes on primary pages......... 1781 87.0% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 1781 87.0% *** Table CONTROL w/o any indices ************************************ Percentage of total database.......... 4.8% Number of entries..................... 6 Bytes of storage consumed............. 1024 Bytes of payload...................... 117 11.4% Average payload per entry............. 19.50 Average unused bytes per entry........ 145.83 Maximum payload per entry............. 40 Entries that use overflow............. 0 0.0% Primary pages used.................... 1 Overflow pages used................... 0 Total pages used...................... 1 Unused bytes on primary pages......... 875 85.4% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 875 85.4% *** Indices of table CONTROL ***************************************** Percentage of total database.......... 4.8% Number of entries..................... 6 Bytes of storage consumed............. 1024 Bytes of payload...................... 92 9.0% Average payload per entry............. 15.33 Average unused bytes per entry........ 151.00 Maximum payload per entry............. 20 Entries that use overflow............. 0 0.0% Primary pages used.................... 1 Overflow pages used................... 0 Total pages used...................... 1 Unused bytes on primary pages......... 906 88.5% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 906 88.5% *** Table PREFS and all its indices ********************************** Percentage of total database.......... 57.1% Number of entries..................... 144 Bytes of storage consumed............. 12288 Bytes of payload...................... 8332 67.8% Average payload per entry............. 57.86 Average unused bytes per entry........ 23.15 Average fanout........................ 4.00 Fragmentation......................... 63.6% Maximum payload per entry............. 5069 Entries that use overflow............. 1 0.69% Index pages used...................... 1 Primary pages used.................... 7 Overflow pages used................... 4 Total pages used...................... 12 Unused bytes on index pages........... 991 96.8% Unused bytes on primary pages......... 2343 32.7% Unused bytes on overflow pages........ 0 0.0% Unused bytes on all pages............. 3334 27.1% *** Table PREFS w/o any indices ************************************** Percentage of total database.......... 42.9% Number of entries..................... 72 Bytes of storage consumed............. 9216 Bytes of payload...................... 6756 73.3% Average payload per entry............. 93.83 Average unused bytes per entry........ 28.97 Average fanout........................ 4.00 Fragmentation......................... 62.5% Maximum payload per entry............. 5069 Entries that use overflow............. 1 1.4% Index pages used...................... 1 Primary pages used.................... 4 Overflow pages used................... 4 Total pages used...................... 9 Unused bytes on index pages........... 991 96.8% Unused bytes on primary pages......... 1095 26.7% Unused bytes on overflow pages........ 0 0.0% Unused bytes on all pages............. 2086 22.6% *** Indices of table PREFS ******************************************* Percentage of total database.......... 14.3% Number of entries..................... 72 Bytes of storage consumed............. 3072 Bytes of payload...................... 1576 51.3% Average payload per entry............. 21.89 Average unused bytes per entry........ 17.33 Fragmentation......................... 100.0% Maximum payload per entry............. 35 Entries that use overflow............. 0 0.0% Primary pages used.................... 3 Overflow pages used................... 0 Total pages used...................... 3 Unused bytes on primary pages......... 1248 40.6% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 1248 40.6% *** Table SQLITE_MASTER ********************************************** Percentage of total database.......... 4.8% Number of entries..................... 6 Bytes of storage consumed............. 1024 Bytes of payload...................... 446 43.6% Average payload per entry............. 74.33 Average unused bytes per entry........ 74.33 Maximum payload per entry............. 108 Entries that use overflow............. 0 0.0% Primary pages used.................... 1 Overflow pages used................... 0 Total pages used...................... 1 Unused bytes on primary pages......... 446 43.6% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 446 43.6% *** Table WORLDS and all its indices ********************************* Percentage of total database.......... 9.5% Number of entries..................... 20 Bytes of storage consumed............. 2048 Bytes of payload...................... 573 28.0% Average payload per entry............. 28.65 Average unused bytes per entry........ 69.45 Fragmentation......................... 0.0% Maximum payload per entry............. 35 Entries that use overflow............. 0 0.0% Primary pages used.................... 2 Overflow pages used................... 0 Total pages used...................... 2 Unused bytes on primary pages......... 1389 67.8% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 1389 67.8% *** Table WORLDS w/o any indices ************************************* Percentage of total database.......... 4.8% Number of entries..................... 10 Bytes of storage consumed............. 1024 Bytes of payload...................... 293 28.6% Average payload per entry............. 29.30 Average unused bytes per entry........ 68.30 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......... 683 66.7% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 683 66.7% *** Indices of table WORLDS ****************************************** Percentage of total database.......... 4.8% Number of entries..................... 10 Bytes of storage consumed............. 1024 Bytes of payload...................... 280 27.3% Average payload per entry............. 28.00 Average unused bytes per entry........ 70.60 Maximum payload per entry............. 34 Entries that use overflow............. 0 0.0% Primary pages used.................... 1 Overflow pages used................... 0 Total pages used...................... 1 Unused bytes on primary pages......... 706 68.9% Unused bytes on overflow pages........ 0 Unused bytes on all pages............. 706 68.9% *** 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('control','control',0,6,6,117,0,0,40,0,1,0,0,875,0,0); INSERT INTO space_used VALUES('prefs','prefs',0,75,72,6756,4080,1,5069,1,4,4,991,1095,0,5); INSERT INTO space_used VALUES('sqlite_master','sqlite_master',0,6,6,446,0,0,108,0,1,0,0,446,0,0); INSERT INTO space_used VALUES('worlds','worlds',0,10,10,293,0,0,35,0,1,0,0,683,0,0); INSERT INTO space_used VALUES('sqlite_autoindex_control_1','control',1,6,6,92,0,0,20,0,1,0,0,906,0,0); INSERT INTO space_used VALUES('sqlite_autoindex_prefs_1','prefs',1,72,72,1576,0,0,35,0,3,0,0,1248,0,2); INSERT INTO space_used VALUES('sqlite_autoindex_worlds_1','worlds',1,10,10,280,0,0,34,0,1,0,0,706,0,0); COMMIT;