1. The sqlite3_analyzer.exe Utility Program

The sqlite3_analyzer.exe binary is a command-line utility program that measures and displays how much and how efficiently space is used by individual tables and indexes with an SQLite database file. Example usage:

  1. sqlite3_analyzer database.sqlite

The output is a human-readable ASCII text report that provides information on the space utilization of the database file. The report is intended to be self-explanatory, though there is some additional explanation of the various parameters reported toward the end of the report.

The output is also valid SQL. Most of the report text is contained within a header comment, with various SQL statements that create and initialize a database at the end of the report. The constructed database contains the raw data from which the report was extracted. Hence the original report can be read into an instance of the command-line shell and then the raw data can be queried to dig deeper into the space utilization of a particular database file.

1.1. Implementation

The sqlite3_analyzer.exe program is a TCL program that uses the dbstat virtual table to gather information about the database file and then format that information neatly.

1.2. Example Output

The following is sqlite3_analyzer output for an example places.sqlite database used by Firefox.

  1. /** Disk-Space Utilization Report For ██████████████████/places.sqlite
  2.  
  3. Page size in bytes................................ 32768
  4. Pages in the whole file (measured)................ 221
  5. Pages in the whole file (calculated).............. 221
  6. Pages that store data............................. 221 100.0%
  7. Pages on the freelist (per header)................ 0 0.0%
  8. Pages on the freelist (calculated)................ 0 0.0%
  9. Pages of auto-vacuum overhead..................... 0 0.0%
  10. Number of tables in the database.................. 14
  11. Number of indices................................. 23
  12. Number of defined indices......................... 17
  13. Number of implied indices......................... 6
  14. Size of the file in bytes......................... 7241728
  15. Bytes of user payload stored...................... 2503069 34.6%
  16.  
  17. *** Page counts for all tables with their indices *****************************
  18.  
  19. MOZ_PLACES........................................ 142 64.3%
  20. MOZ_HISTORYVISITS................................. 41 18.6%
  21. MOZ_FAVICONS...................................... 15 6.8%
  22. MOZ_BOOKMARKS..................................... 5 2.3%
  23. MOZ_KEYWORDS...................................... 3 1.4%
  24. MOZ_ANNO_ATTRIBUTES............................... 2 0.90%
  25. MOZ_ANNOS......................................... 2 0.90%
  26. MOZ_BOOKMARKS_ROOTS............................... 2 0.90%
  27. MOZ_HOSTS......................................... 2 0.90%
  28. MOZ_INPUTHISTORY.................................. 2 0.90%
  29. MOZ_ITEMS_ANNOS................................... 2 0.90%
  30. SQLITE_MASTER..................................... 1 0.45%
  31. SQLITE_SEQUENCE................................... 1 0.45%
  32. SQLITE_STAT1...................................... 1 0.45%
  33.  
  34. *** Page counts for all tables and indices separately *************************
  35.  
  36. MOZ_PLACES........................................ 63 28.5%
  37. MOZ_PLACES_URL_UNIQUEINDEX........................ 37 16.7%
  38. MOZ_HISTORYVISITS................................. 13 5.9%
  39. MOZ_FAVICONS...................................... 12 5.4%
  40. MOZ_HISTORYVISITS_PLACEDATEINDEX.................. 12 5.4%
  41. MOZ_PLACES_HOSTINDEX.............................. 11 5.0%
  42. MOZ_HISTORYVISITS_DATEINDEX....................... 10 4.5%
  43. MOZ_PLACES_GUID_UNIQUEINDEX....................... 9 4.1%
  44. MOZ_PLACES_LASTVISITDATEINDEX..................... 7 3.2%
  45. MOZ_HISTORYVISITS_FROMINDEX....................... 6 2.7%
  46. MOZ_PLACES_FAVICONINDEX........................... 5 2.3%
  47. MOZ_PLACES_FRECENCYINDEX.......................... 5 2.3%
  48. MOZ_PLACES_VISITCOUNT............................. 5 2.3%
  49. SQLITE_AUTOINDEX_MOZ_FAVICONS_1................... 3 1.4%
  50. MOZ_ANNO_ATTRIBUTES............................... 1 0.45%
  51. MOZ_ANNOS......................................... 1 0.45%
  52. MOZ_ANNOS_PLACEATTRIBUTEINDEX..................... 1 0.45%
  53. MOZ_BOOKMARKS..................................... 1 0.45%
  54. MOZ_BOOKMARKS_GUID_UNIQUEINDEX.................... 1 0.45%
  55. MOZ_BOOKMARKS_ITEMINDEX........................... 1 0.45%
  56. MOZ_BOOKMARKS_ITEMLASTMODIFIEDINDEX............... 1 0.45%
  57. MOZ_BOOKMARKS_PARENTINDEX......................... 1 0.45%
  58. MOZ_BOOKMARKS_ROOTS............................... 1 0.45%
  59. MOZ_HOSTS......................................... 1 0.45%
  60. MOZ_INPUTHISTORY.................................. 1 0.45%
  61. MOZ_ITEMS_ANNOS................................... 1 0.45%
  62. MOZ_ITEMS_ANNOS_ITEMATTRIBUTEINDEX................ 1 0.45%
  63. MOZ_KEYWORDS...................................... 1 0.45%
  64. MOZ_KEYWORDS_PLACEPOSTDATA_UNIQUEINDEX............ 1 0.45%
  65. SQLITE_AUTOINDEX_MOZ_ANNO_ATTRIBUTES_1............ 1 0.45%
  66. SQLITE_AUTOINDEX_MOZ_BOOKMARKS_ROOTS_1............ 1 0.45%
  67. SQLITE_AUTOINDEX_MOZ_HOSTS_1...................... 1 0.45%
  68. SQLITE_AUTOINDEX_MOZ_INPUTHISTORY_1............... 1 0.45%
  69. SQLITE_AUTOINDEX_MOZ_KEYWORDS_1................... 1 0.45%
  70. SQLITE_MASTER..................................... 1 0.45%
  71. SQLITE_SEQUENCE................................... 1 0.45%
  72. SQLITE_STAT1...................................... 1 0.45%
  73.  
  74. *** All tables and indices ****************************************************
  75.  
  76. Percentage of total database...................... 100.0%
  77. Number of entries................................. 154969
  78. Bytes of storage consumed......................... 7241728
  79. Bytes of payload.................................. 4969404 68.6%
  80. Average payload per entry......................... 32.07
  81. Average unused bytes per entry.................... 11.15
  82. Average fanout.................................... 14.00
  83. Maximum payload per entry......................... 7640
  84. Entries that use overflow......................... 0 0.0%
  85. Index pages used.................................. 14
  86. Primary pages used................................ 207
  87. Overflow pages used............................... 0
  88. Total pages used.................................. 221
  89. Unused bytes on index pages....................... 448010 97.7%
  90. Unused bytes on primary pages..................... 1280642 18.9%
  91. Unused bytes on overflow pages.................... 0
  92. Unused bytes on all pages......................... 1728652 23.9%
  93.  
  94. *** All tables ****************************************************************
  95.  
  96. Percentage of total database...................... 44.8%
  97. Number of entries................................. 28530
  98. Bytes of storage consumed......................... 3244032
  99. Bytes of payload.................................. 2508257 77.3%
  100. Average payload per entry......................... 87.92
  101. Average unused bytes per entry.................... 20.13
  102. Average fanout.................................... 28.00
  103. Maximum payload per entry......................... 7640
  104. Entries that use overflow......................... 0 0.0%
  105. Index pages used.................................. 3
  106. Primary pages used................................ 96
  107. Overflow pages used............................... 0
  108. Total pages used.................................. 99
  109. Unused bytes on index pages....................... 97551 99.23%
  110. Unused bytes on primary pages..................... 476741 15.2%
  111. Unused bytes on overflow pages.................... 0
  112. Unused bytes on all pages......................... 574292 17.7%
  113.  
  114. *** All indices ***************************************************************
  115.  
  116. Percentage of total database...................... 55.2%
  117. Number of entries................................. 126439
  118. Bytes of storage consumed......................... 3997696
  119. Bytes of payload.................................. 2461147 61.6%
  120. Average payload per entry......................... 19.47
  121. Average unused bytes per entry.................... 9.13
  122. Average fanout.................................... 11.00
  123. Maximum payload per entry......................... 7259
  124. Entries that use overflow......................... 0 0.0%
  125. Index pages used.................................. 11
  126. Primary pages used................................ 111
  127. Overflow pages used............................... 0
  128. Total pages used.................................. 122
  129. Unused bytes on index pages....................... 350459 97.2%
  130. Unused bytes on primary pages..................... 803901 22.1%
  131. Unused bytes on overflow pages.................... 0
  132. Unused bytes on all pages......................... 1154360 28.9%
  133.  
  134. *** Table MOZ_ANNO_ATTRIBUTES and all its indices *****************************
  135.  
  136. Percentage of total database...................... 0.90%
  137. Number of entries................................. 24
  138. Bytes of storage consumed......................... 65536
  139. Bytes of payload.................................. 721 1.1%
  140. Average payload per entry......................... 30.04
  141. Average unused bytes per entry.................... 2696.46
  142. Maximum payload per entry......................... 43
  143. Entries that use overflow......................... 0 0.0%
  144. Primary pages used................................ 2
  145. Overflow pages used............................... 0
  146. Total pages used.................................. 2
  147. Unused bytes on primary pages..................... 64715 98.7%
  148. Unused bytes on overflow pages.................... 0
  149. Unused bytes on all pages......................... 64715 98.7%
  150.  
  151. *** Table MOZ_ANNO_ATTRIBUTES w/o any indices *********************************
  152.  
  153. Percentage of total database...................... 0.45%
  154. Number of entries................................. 12
  155. Bytes of storage consumed......................... 32768
  156. Bytes of payload.................................. 355 1.1%
  157. B-tree depth...................................... 1
  158. Average payload per entry......................... 29.58
  159. Average unused bytes per entry.................... 2696.42
  160. Maximum payload per entry......................... 42
  161. Entries that use overflow......................... 0 0.0%
  162. Primary pages used................................ 1
  163. Overflow pages used............................... 0
  164. Total pages used.................................. 1
  165. Unused bytes on primary pages..................... 32357 98.7%
  166. Unused bytes on overflow pages.................... 0
  167. Unused bytes on all pages......................... 32357 98.7%
  168.  
  169. *** Index SQLITE_AUTOINDEX_MOZ_ANNO_ATTRIBUTES_1 of table MOZ_ANNO_ATTRIBUTES *
  170.  
  171. Percentage of total database...................... 0.45%
  172. Number of entries................................. 12
  173. Bytes of storage consumed......................... 32768
  174. Bytes of payload.................................. 366 1.1%
  175. B-tree depth...................................... 1
  176. Average payload per entry......................... 30.50
  177. Average unused bytes per entry.................... 2696.50
  178. Maximum payload per entry......................... 43
  179. Entries that use overflow......................... 0 0.0%
  180. Primary pages used................................ 1
  181. Overflow pages used............................... 0
  182. Total pages used.................................. 1
  183. Unused bytes on primary pages..................... 32358 98.7%
  184. Unused bytes on overflow pages.................... 0
  185. Unused bytes on all pages......................... 32358 98.7%
  186.  
  187. *** Table MOZ_ANNOS and all its indices ***************************************
  188.  
  189. Percentage of total database...................... 0.90%
  190. Number of entries................................. 390
  191. Bytes of storage consumed......................... 65536
  192. Bytes of payload.................................. 13986 21.3%
  193. Average payload per entry......................... 35.86
  194. Average unused bytes per entry.................... 128.22
  195. Maximum payload per entry......................... 127
  196. Entries that use overflow......................... 0 0.0%
  197. Primary pages used................................ 2
  198. Overflow pages used............................... 0
  199. Total pages used.................................. 2
  200. Unused bytes on primary pages..................... 50006 76.3%
  201. Unused bytes on overflow pages.................... 0
  202. Unused bytes on all pages......................... 50006 76.3%
  203.  
  204. *** Table MOZ_ANNOS w/o any indices *******************************************
  205.  
  206. Percentage of total database...................... 0.45%
  207. Number of entries................................. 195
  208. Bytes of storage consumed......................... 32768
  209. Bytes of payload.................................. 12115 37.0%
  210. B-tree depth...................................... 1
  211. Average payload per entry......................... 62.13
  212. Average unused bytes per entry.................... 101.04
  213. Maximum payload per entry......................... 127
  214. Entries that use overflow......................... 0 0.0%
  215. Primary pages used................................ 1
  216. Overflow pages used............................... 0
  217. Total pages used.................................. 1
  218. Unused bytes on primary pages..................... 19702 60.1%
  219. Unused bytes on overflow pages.................... 0
  220. Unused bytes on all pages......................... 19702 60.1%
  221.  
  222. *** Index MOZ_ANNOS_PLACEATTRIBUTEINDEX of table MOZ_ANNOS ********************
  223.  
  224. Percentage of total database...................... 0.45%
  225. Number of entries................................. 195
  226. Bytes of storage consumed......................... 32768
  227. Bytes of payload.................................. 1871 5.7%
  228. B-tree depth...................................... 1
  229. Average payload per entry......................... 9.59
  230. Average unused bytes per entry.................... 155.41
  231. Maximum payload per entry......................... 10
  232. Entries that use overflow......................... 0 0.0%
  233. Primary pages used................................ 1
  234. Overflow pages used............................... 0
  235. Total pages used.................................. 1
  236. Unused bytes on primary pages..................... 30304 92.5%
  237. Unused bytes on overflow pages.................... 0
  238. Unused bytes on all pages......................... 30304 92.5%
  239.  
  240. *** Table MOZ_BOOKMARKS and all its indices ***********************************
  241.  
  242. Percentage of total database...................... 2.3%
  243. Number of entries................................. 1565
  244. Bytes of storage consumed......................... 163840
  245. Bytes of payload.................................. 37104 22.6%
  246. Average payload per entry......................... 23.71
  247. Average unused bytes per entry.................... 77.62
  248. Maximum payload per entry......................... 518
  249. Entries that use overflow......................... 0 0.0%
  250. Primary pages used................................ 5
  251. Overflow pages used............................... 0
  252. Total pages used.................................. 5
  253. Unused bytes on primary pages..................... 121475 74.1%
  254. Unused bytes on overflow pages.................... 0
  255. Unused bytes on all pages......................... 121475 74.1%
  256.  
  257. *** Table MOZ_BOOKMARKS w/o any indices ***************************************
  258.  
  259. Percentage of total database...................... 0.45%
  260. Number of entries................................. 313
  261. Bytes of storage consumed......................... 32768
  262. Bytes of payload.................................. 21937 66.9%
  263. B-tree depth...................................... 1
  264. Average payload per entry......................... 70.09
  265. Average unused bytes per entry.................... 29.90
  266. Maximum payload per entry......................... 518
  267. Entries that use overflow......................... 0 0.0%
  268. Primary pages used................................ 1
  269. Overflow pages used............................... 0
  270. Total pages used.................................. 1
  271. Unused bytes on primary pages..................... 9358 28.6%
  272. Unused bytes on overflow pages.................... 0
  273. Unused bytes on all pages......................... 9358 28.6%
  274.  
  275. *** Indices of table MOZ_BOOKMARKS ********************************************
  276.  
  277. Percentage of total database...................... 1.8%
  278. Number of entries................................. 1252
  279. Bytes of storage consumed......................... 131072
  280. Bytes of payload.................................. 15167 11.6%
  281. Average payload per entry......................... 12.11
  282. Average unused bytes per entry.................... 89.55
  283. Maximum payload per entry......................... 17
  284. Entries that use overflow......................... 0 0.0%
  285. Primary pages used................................ 4
  286. Overflow pages used............................... 0
  287. Total pages used.................................. 4
  288. Unused bytes on primary pages..................... 112117 85.5%
  289. Unused bytes on overflow pages.................... 0
  290. Unused bytes on all pages......................... 112117 85.5%
  291.  
  292. *** Index MOZ_BOOKMARKS_GUID_UNIQUEINDEX of table MOZ_BOOKMARKS ***************
  293.  
  294. Percentage of total database...................... 0.45%
  295. Number of entries................................. 313
  296. Bytes of storage consumed......................... 32768
  297. Bytes of payload.................................. 5207 15.9%
  298. B-tree depth...................................... 1
  299. Average payload per entry......................... 16.64
  300. Average unused bytes per entry.................... 85.03
  301. Maximum payload per entry......................... 17
  302. Entries that use overflow......................... 0 0.0%
  303. Primary pages used................................ 1
  304. Overflow pages used............................... 0
  305. Total pages used.................................. 1
  306. Unused bytes on primary pages..................... 26614 81.2%
  307. Unused bytes on overflow pages.................... 0
  308. Unused bytes on all pages......................... 26614 81.2%
  309.  
  310. *** Index MOZ_BOOKMARKS_ITEMINDEX of table MOZ_BOOKMARKS **********************
  311.  
  312. Percentage of total database...................... 0.45%
  313. Number of entries................................. 313
  314. Bytes of storage consumed......................... 32768
  315. Bytes of payload.................................. 2547 7.8%
  316. B-tree depth...................................... 1
  317. Average payload per entry......................... 8.14
  318. Average unused bytes per entry.................... 93.53
  319. Maximum payload per entry......................... 9
  320. Entries that use overflow......................... 0 0.0%
  321. Primary pages used................................ 1
  322. Overflow pages used............................... 0
  323. Total pages used.................................. 1
  324. Unused bytes on primary pages..................... 29274 89.3%
  325. Unused bytes on overflow pages.................... 0
  326. Unused bytes on all pages......................... 29274 89.3%
  327.  
  328. *** Index MOZ_BOOKMARKS_ITEMLASTMODIFIEDINDEX of table MOZ_BOOKMARKS **********
  329.  
  330. Percentage of total database...................... 0.45%
  331. Number of entries................................. 313
  332. Bytes of storage consumed......................... 32768
  333. Bytes of payload.................................. 5020 15.3%
  334. B-tree depth...................................... 1
  335. Average payload per entry......................... 16.04
  336. Average unused bytes per entry.................... 85.63
  337. Maximum payload per entry......................... 17
  338. Entries that use overflow......................... 0 0.0%
  339. Primary pages used................................ 1
  340. Overflow pages used............................... 0
  341. Total pages used.................................. 1
  342. Unused bytes on primary pages..................... 26801 81.8%
  343. Unused bytes on overflow pages.................... 0
  344. Unused bytes on all pages......................... 26801 81.8%
  345.  
  346. *** Index MOZ_BOOKMARKS_PARENTINDEX of table MOZ_BOOKMARKS ********************
  347.  
  348. Percentage of total database...................... 0.45%
  349. Number of entries................................. 313
  350. Bytes of storage consumed......................... 32768
  351. Bytes of payload.................................. 2393 7.3%
  352. B-tree depth...................................... 1
  353. Average payload per entry......................... 7.65
  354. Average unused bytes per entry.................... 94.02
  355. Maximum payload per entry......................... 9
  356. Entries that use overflow......................... 0 0.0%
  357. Primary pages used................................ 1
  358. Overflow pages used............................... 0
  359. Total pages used.................................. 1
  360. Unused bytes on primary pages..................... 29428 89.8%
  361. Unused bytes on overflow pages.................... 0
  362. Unused bytes on all pages......................... 29428 89.8%
  363.  
  364. *** Table MOZ_BOOKMARKS_ROOTS and all its indices *****************************
  365.  
  366. Percentage of total database...................... 0.90%
  367. Number of entries................................. 10
  368. Bytes of storage consumed......................... 65536
  369. Bytes of payload.................................. 94 0.14%
  370. Average payload per entry......................... 9.40
  371. Average unused bytes per entry.................... 6539.10
  372. Maximum payload per entry......................... 11
  373. Entries that use overflow......................... 0 0.0%
  374. Primary pages used................................ 2
  375. Overflow pages used............................... 0
  376. Total pages used.................................. 2
  377. Unused bytes on primary pages..................... 65391 99.78%
  378. Unused bytes on overflow pages.................... 0
  379. Unused bytes on all pages......................... 65391 99.78%
  380.  
  381. *** Table MOZ_BOOKMARKS_ROOTS w/o any indices *********************************
  382.  
  383. Percentage of total database...................... 0.45%
  384. Number of entries................................. 5
  385. Bytes of storage consumed......................... 32768
  386. Bytes of payload.................................. 47 0.14%
  387. B-tree depth...................................... 1
  388. Average payload per entry......................... 9.40
  389. Average unused bytes per entry.................... 6538.60
  390. Maximum payload per entry......................... 11
  391. Entries that use overflow......................... 0 0.0%
  392. Primary pages used................................ 1
  393. Overflow pages used............................... 0
  394. Total pages used.................................. 1
  395. Unused bytes on primary pages..................... 32693 99.77%
  396. Unused bytes on overflow pages.................... 0
  397. Unused bytes on all pages......................... 32693 99.77%
  398.  
  399. *** Index SQLITE_AUTOINDEX_MOZ_BOOKMARKS_ROOTS_1 of table MOZ_BOOKMARKS_ROOTS *
  400.  
  401. Percentage of total database...................... 0.45%
  402. Number of entries................................. 5
  403. Bytes of storage consumed......................... 32768
  404. Bytes of payload.................................. 47 0.14%
  405. B-tree depth...................................... 1
  406. Average payload per entry......................... 9.40
  407. Average unused bytes per entry.................... 6539.60
  408. Maximum payload per entry......................... 11
  409. Entries that use overflow......................... 0 0.0%
  410. Primary pages used................................ 1
  411. Overflow pages used............................... 0
  412. Total pages used.................................. 1
  413. Unused bytes on primary pages..................... 32698 99.79%
  414. Unused bytes on overflow pages.................... 0
  415. Unused bytes on all pages......................... 32698 99.79%
  416.  
  417. *** Table MOZ_FAVICONS and all its indices ************************************
  418.  
  419. Percentage of total database...................... 6.8%
  420. Number of entries................................. 941
  421. Bytes of storage consumed......................... 491520
  422. Bytes of payload.................................. 332765 67.7%
  423. Average payload per entry......................... 353.63
  424. Average unused bytes per entry.................... 164.00
  425. Average fanout.................................... 7.00
  426. Maximum payload per entry......................... 7640
  427. Entries that use overflow......................... 0 0.0%
  428. Index pages used.................................. 2
  429. Primary pages used................................ 13
  430. Overflow pages used............................... 0
  431. Total pages used.................................. 15
  432. Unused bytes on index pages....................... 65340 99.70%
  433. Unused bytes on primary pages..................... 88980 20.9%
  434. Unused bytes on overflow pages.................... 0
  435. Unused bytes on all pages......................... 154320 31.4%
  436.  
  437. *** Table MOZ_FAVICONS w/o any indices ****************************************
  438.  
  439. Percentage of total database...................... 5.4%
  440. Number of entries................................. 471
  441. Bytes of storage consumed......................... 393216
  442. Bytes of payload.................................. 297630 75.7%
  443. B-tree depth...................................... 2
  444. Average payload per entry......................... 631.91
  445. Average unused bytes per entry.................... 196.60
  446. Average fanout.................................... 11.00
  447. Non-sequential pages.............................. 6 54.5%
  448. Maximum payload per entry......................... 7640
  449. Entries that use overflow......................... 0 0.0%
  450. Index pages used.................................. 1
  451. Primary pages used................................ 11
  452. Overflow pages used............................... 0
  453. Total pages used.................................. 12
  454. Unused bytes on index pages....................... 32676 99.72%
  455. Unused bytes on primary pages..................... 59923 16.6%
  456. Unused bytes on overflow pages.................... 0
  457. Unused bytes on all pages......................... 92599 23.5%
  458.  
  459. *** Index SQLITE_AUTOINDEX_MOZ_FAVICONS_1 of table MOZ_FAVICONS ***************
  460.  
  461. Percentage of total database...................... 1.4%
  462. Number of entries................................. 470
  463. Bytes of storage consumed......................... 98304
  464. Bytes of payload.................................. 35135 35.7%
  465. B-tree depth...................................... 2
  466. Average payload per entry......................... 74.76
  467. Average unused bytes per entry.................... 131.32
  468. Average fanout.................................... 3.00
  469. Non-sequential pages.............................. 1 50.0%
  470. Maximum payload per entry......................... 7259
  471. Entries that use overflow......................... 0 0.0%
  472. Index pages used.................................. 1
  473. Primary pages used................................ 2
  474. Overflow pages used............................... 0
  475. Total pages used.................................. 3
  476. Unused bytes on index pages....................... 32664 99.68%
  477. Unused bytes on primary pages..................... 29057 44.3%
  478. Unused bytes on overflow pages.................... 0
  479. Unused bytes on all pages......................... 61721 62.8%
  480.  
  481. *** Table MOZ_HISTORYVISITS and all its indices *******************************
  482.  
  483. Percentage of total database...................... 18.6%
  484. Number of entries................................. 63470
  485. Bytes of storage consumed......................... 1343488
  486. Bytes of payload.................................. 882233 65.7%
  487. Average payload per entry......................... 13.90
  488. Average unused bytes per entry.................... 3.76
  489. Average fanout.................................... 10.00
  490. Maximum payload per entry......................... 21
  491. Entries that use overflow......................... 0 0.0%
  492. Index pages used.................................. 4
  493. Primary pages used................................ 37
  494. Overflow pages used............................... 0
  495. Total pages used.................................. 41
  496. Unused bytes on index pages....................... 130482 99.55%
  497. Unused bytes on primary pages..................... 108158 8.9%
  498. Unused bytes on overflow pages.................... 0
  499. Unused bytes on all pages......................... 238640 17.8%
  500.  
  501. *** Table MOZ_HISTORYVISITS w/o any indices ***********************************
  502.  
  503. Percentage of total database...................... 5.9%
  504. Number of entries................................. 15873
  505. Bytes of storage consumed......................... 425984
  506. Bytes of payload.................................. 308447 72.4%
  507. B-tree depth...................................... 2
  508. Average payload per entry......................... 19.43
  509. Average unused bytes per entry.................... 2.40
  510. Average fanout.................................... 12.00
  511. Non-sequential pages.............................. 8 66.7%
  512. Maximum payload per entry......................... 21
  513. Entries that use overflow......................... 0 0.0%
  514. Index pages used.................................. 1
  515. Primary pages used................................ 12
  516. Overflow pages used............................... 0
  517. Total pages used.................................. 13
  518. Unused bytes on index pages....................... 32668 99.69%
  519. Unused bytes on primary pages..................... 5435 1.4%
  520. Unused bytes on overflow pages.................... 0
  521. Unused bytes on all pages......................... 38103 8.9%
  522.  
  523. *** Indices of table MOZ_HISTORYVISITS ****************************************
  524.  
  525. Percentage of total database...................... 12.7%
  526. Number of entries................................. 47597
  527. Bytes of storage consumed......................... 917504
  528. Bytes of payload.................................. 573786 62.5%
  529. Average payload per entry......................... 12.06
  530. Average unused bytes per entry.................... 4.21
  531. Average fanout.................................... 9.00
  532. Maximum payload per entry......................... 17
  533. Entries that use overflow......................... 0 0.0%
  534. Index pages used.................................. 3
  535. Primary pages used................................ 25
  536. Overflow pages used............................... 0
  537. Total pages used.................................. 28
  538. Unused bytes on index pages....................... 97814 99.50%
  539. Unused bytes on primary pages..................... 102723 12.5%
  540. Unused bytes on overflow pages.................... 0
  541. Unused bytes on all pages......................... 200537 21.9%
  542.  
  543. *** Index MOZ_HISTORYVISITS_DATEINDEX of table MOZ_HISTORYVISITS **************
  544.  
  545. Percentage of total database...................... 4.5%
  546. Number of entries................................. 15865
  547. Bytes of storage consumed......................... 327680
  548. Bytes of payload.................................. 206221 62.9%
  549. B-tree depth...................................... 2
  550. Average payload per entry......................... 13.00
  551. Average unused bytes per entry.................... 4.65
  552. Average fanout.................................... 10.00
  553. Non-sequential pages.............................. 6 66.7%
  554. Maximum payload per entry......................... 13
  555. Entries that use overflow......................... 0 0.0%
  556. Index pages used.................................. 1
  557. Primary pages used................................ 9
  558. Overflow pages used............................... 0
  559. Total pages used.................................. 10
  560. Unused bytes on index pages....................... 32596 99.48%
  561. Unused bytes on primary pages..................... 41128 13.9%
  562. Unused bytes on overflow pages.................... 0
  563. Unused bytes on all pages......................... 73724 22.5%
  564.  
  565. *** Index MOZ_HISTORYVISITS_FROMINDEX of table MOZ_HISTORYVISITS **************
  566.  
  567. Percentage of total database...................... 2.7%
  568. Number of entries................................. 15869
  569. Bytes of storage consumed......................... 196608
  570. Bytes of payload.................................. 100292 51.0%
  571. B-tree depth...................................... 2
  572. Average payload per entry......................... 6.32
  573. Average unused bytes per entry.................... 3.06
  574. Average fanout.................................... 6.00
  575. Non-sequential pages.............................. 4 80.0%
  576. Maximum payload per entry......................... 7
  577. Entries that use overflow......................... 0 0.0%
  578. Index pages used.................................. 1
  579. Primary pages used................................ 5
  580. Overflow pages used............................... 0
  581. Total pages used.................................. 6
  582. Unused bytes on index pages....................... 32702 99.80%
  583. Unused bytes on primary pages..................... 15927 9.7%
  584. Unused bytes on overflow pages.................... 0
  585. Unused bytes on all pages......................... 48629 24.7%
  586.  
  587. *** Index MOZ_HISTORYVISITS_PLACEDATEINDEX of table MOZ_HISTORYVISITS *********
  588.  
  589. Percentage of total database...................... 5.4%
  590. Number of entries................................. 15863
  591. Bytes of storage consumed......................... 393216
  592. Bytes of payload.................................. 267273 68.0%
  593. B-tree depth...................................... 2
  594. Average payload per entry......................... 16.85
  595. Average unused bytes per entry.................... 4.93
  596. Average fanout.................................... 12.00
  597. Non-sequential pages.............................. 8 72.7%
  598. Maximum payload per entry......................... 17
  599. Entries that use overflow......................... 0 0.0%
  600. Index pages used.................................. 1
  601. Primary pages used................................ 11
  602. Overflow pages used............................... 0
  603. Total pages used.................................. 12
  604. Unused bytes on index pages....................... 32516 99.23%
  605. Unused bytes on primary pages..................... 45668 12.7%
  606. Unused bytes on overflow pages.................... 0
  607. Unused bytes on all pages......................... 78184 19.9%
  608.  
  609. *** Table MOZ_HOSTS and all its indices ***************************************
  610.  
  611. Percentage of total database...................... 0.90%
  612. Number of entries................................. 1256
  613. Bytes of storage consumed......................... 65536
  614. Bytes of payload.................................. 27640 42.2%
  615. Average payload per entry......................... 22.01
  616. Average unused bytes per entry.................... 26.18
  617. Maximum payload per entry......................... 49
  618. Entries that use overflow......................... 0 0.0%
  619. Primary pages used................................ 2
  620. Overflow pages used............................... 0
  621. Total pages used.................................. 2
  622. Unused bytes on primary pages..................... 32888 50.2%
  623. Unused bytes on overflow pages.................... 0
  624. Unused bytes on all pages......................... 32888 50.2%
  625.  
  626. *** Table MOZ_HOSTS w/o any indices *******************************************
  627.  
  628. Percentage of total database...................... 0.45%
  629. Number of entries................................. 628
  630. Bytes of storage consumed......................... 32768
  631. Bytes of payload.................................. 14640 44.7%
  632. B-tree depth...................................... 1
  633. Average payload per entry......................... 23.31
  634. Average unused bytes per entry.................... 23.90
  635. Maximum payload per entry......................... 49
  636. Entries that use overflow......................... 0 0.0%
  637. Primary pages used................................ 1
  638. Overflow pages used............................... 0
  639. Total pages used.................................. 1
  640. Unused bytes on primary pages..................... 15012 45.8%
  641. Unused bytes on overflow pages.................... 0
  642. Unused bytes on all pages......................... 15012 45.8%
  643.  
  644. *** Index SQLITE_AUTOINDEX_MOZ_HOSTS_1 of table MOZ_HOSTS *********************
  645.  
  646. Percentage of total database...................... 0.45%
  647. Number of entries................................. 628
  648. Bytes of storage consumed......................... 32768
  649. Bytes of payload.................................. 13000 39.7%
  650. B-tree depth...................................... 1
  651. Average payload per entry......................... 20.70
  652. Average unused bytes per entry.................... 28.46
  653. Maximum payload per entry......................... 47
  654. Entries that use overflow......................... 0 0.0%
  655. Primary pages used................................ 1
  656. Overflow pages used............................... 0
  657. Total pages used.................................. 1
  658. Unused bytes on primary pages..................... 17876 54.6%
  659. Unused bytes on overflow pages.................... 0
  660. Unused bytes on all pages......................... 17876 54.6%
  661.  
  662. *** Table MOZ_INPUTHISTORY and all its indices ********************************
  663.  
  664. Percentage of total database...................... 0.90%
  665. Number of entries................................. 16
  666. Bytes of storage consumed......................... 65536
  667. Bytes of payload.................................. 642 0.98%
  668. Average payload per entry......................... 40.12
  669. Average unused bytes per entry.................... 4050.88
  670. Maximum payload per entry......................... 71
  671. Entries that use overflow......................... 0 0.0%
  672. Primary pages used................................ 2
  673. Overflow pages used............................... 0
  674. Total pages used.................................. 2
  675. Unused bytes on primary pages..................... 64814 98.9%
  676. Unused bytes on overflow pages.................... 0
  677. Unused bytes on all pages......................... 64814 98.9%
  678.  
  679. *** Table MOZ_INPUTHISTORY w/o any indices ************************************
  680.  
  681. Percentage of total database...................... 0.45%
  682. Number of entries................................. 8
  683. Bytes of storage consumed......................... 32768
  684. Bytes of payload.................................. 341 1.0%
  685. B-tree depth...................................... 1
  686. Average payload per entry......................... 42.62
  687. Average unused bytes per entry.................... 4047.38
  688. Maximum payload per entry......................... 71
  689. Entries that use overflow......................... 0 0.0%
  690. Primary pages used................................ 1
  691. Overflow pages used............................... 0
  692. Total pages used.................................. 1
  693. Unused bytes on primary pages..................... 32379 98.8%
  694. Unused bytes on overflow pages.................... 0
  695. Unused bytes on all pages......................... 32379 98.8%
  696.  
  697. *** Index SQLITE_AUTOINDEX_MOZ_INPUTHISTORY_1 of table MOZ_INPUTHISTORY *******
  698.  
  699. Percentage of total database...................... 0.45%
  700. Number of entries................................. 8
  701. Bytes of storage consumed......................... 32768
  702. Bytes of payload.................................. 301 0.92%
  703. B-tree depth...................................... 1
  704. Average payload per entry......................... 37.62
  705. Average unused bytes per entry.................... 4054.38
  706. Maximum payload per entry......................... 65
  707. Entries that use overflow......................... 0 0.0%
  708. Primary pages used................................ 1
  709. Overflow pages used............................... 0
  710. Total pages used.................................. 1
  711. Unused bytes on primary pages..................... 32435 99.0%
  712. Unused bytes on overflow pages.................... 0
  713. Unused bytes on all pages......................... 32435 99.0%
  714.  
  715. *** Table MOZ_ITEMS_ANNOS and all its indices *********************************
  716.  
  717. Percentage of total database...................... 0.90%
  718. Number of entries................................. 158
  719. Bytes of storage consumed......................... 65536
  720. Bytes of payload.................................. 9211 14.1%
  721. Average payload per entry......................... 58.30
  722. Average unused bytes per entry.................... 352.56
  723. Maximum payload per entry......................... 384
  724. Entries that use overflow......................... 0 0.0%
  725. Primary pages used................................ 2
  726. Overflow pages used............................... 0
  727. Total pages used.................................. 2
  728. Unused bytes on primary pages..................... 55704 85.0%
  729. Unused bytes on overflow pages.................... 0
  730. Unused bytes on all pages......................... 55704 85.0%
  731.  
  732. *** Table MOZ_ITEMS_ANNOS w/o any indices *************************************
  733.  
  734. Percentage of total database...................... 0.45%
  735. Number of entries................................. 79
  736. Bytes of storage consumed......................... 32768
  737. Bytes of payload.................................. 8649 26.4%
  738. B-tree depth...................................... 1
  739. Average payload per entry......................... 109.48
  740. Average unused bytes per entry.................... 300.54
  741. Maximum payload per entry......................... 384
  742. Entries that use overflow......................... 0 0.0%
  743. Primary pages used................................ 1
  744. Overflow pages used............................... 0
  745. Total pages used.................................. 1
  746. Unused bytes on primary pages..................... 23743 72.5%
  747. Unused bytes on overflow pages.................... 0
  748. Unused bytes on all pages......................... 23743 72.5%
  749.  
  750. *** Index MOZ_ITEMS_ANNOS_ITEMATTRIBUTEINDEX of table MOZ_ITEMS_ANNOS *********
  751.  
  752. Percentage of total database...................... 0.45%
  753. Number of entries................................. 79
  754. Bytes of storage consumed......................... 32768
  755. Bytes of payload.................................. 562 1.7%
  756. B-tree depth...................................... 1
  757. Average payload per entry......................... 7.11
  758. Average unused bytes per entry.................... 404.57
  759. Maximum payload per entry......................... 9
  760. Entries that use overflow......................... 0 0.0%
  761. Primary pages used................................ 1
  762. Overflow pages used............................... 0
  763. Total pages used.................................. 1
  764. Unused bytes on primary pages..................... 31961 97.5%
  765. Unused bytes on overflow pages.................... 0
  766. Unused bytes on all pages......................... 31961 97.5%
  767.  
  768. *** Table MOZ_KEYWORDS and all its indices ************************************
  769.  
  770. Percentage of total database...................... 1.4%
  771. Number of entries................................. 0
  772. Bytes of storage consumed......................... 98304
  773. Bytes of payload.................................. 0 0.0%
  774. Average payload per entry......................... 0.0
  775. Average unused bytes per entry.................... 0.0
  776. Maximum payload per entry......................... 0
  777. Entries that use overflow......................... 0
  778. Primary pages used................................ 3
  779. Overflow pages used............................... 0
  780. Total pages used.................................. 3
  781. Unused bytes on primary pages..................... 98280 99.976%
  782. Unused bytes on overflow pages.................... 0
  783. Unused bytes on all pages......................... 98280 99.976%
  784.  
  785. *** Table MOZ_KEYWORDS w/o any indices ****************************************
  786.  
  787. Percentage of total database...................... 0.45%
  788. Number of entries................................. 0
  789. Bytes of storage consumed......................... 32768
  790. Bytes of payload.................................. 0 0.0%
  791. B-tree depth...................................... 1
  792. Average payload per entry......................... 0.0
  793. Average unused bytes per entry.................... 0.0
  794. Maximum payload per entry......................... 0
  795. Entries that use overflow......................... 0
  796. Primary pages used................................ 1
  797. Overflow pages used............................... 0
  798. Total pages used.................................. 1
  799. Unused bytes on primary pages..................... 32760 99.976%
  800. Unused bytes on overflow pages.................... 0
  801. Unused bytes on all pages......................... 32760 99.976%
  802.  
  803. *** Indices of table MOZ_KEYWORDS *********************************************
  804.  
  805. Percentage of total database...................... 0.90%
  806. Number of entries................................. 0
  807. Bytes of storage consumed......................... 65536
  808. Bytes of payload.................................. 0 0.0%
  809. Average payload per entry......................... 0.0
  810. Average unused bytes per entry.................... 0.0
  811. Maximum payload per entry......................... 0
  812. Entries that use overflow......................... 0
  813. Primary pages used................................ 2
  814. Overflow pages used............................... 0
  815. Total pages used.................................. 2
  816. Unused bytes on primary pages..................... 65520 99.976%
  817. Unused bytes on overflow pages.................... 0
  818. Unused bytes on all pages......................... 65520 99.976%
  819.  
  820. *** Index MOZ_KEYWORDS_PLACEPOSTDATA_UNIQUEINDEX of table MOZ_KEYWORDS ********
  821.  
  822. Percentage of total database...................... 0.45%
  823. Number of entries................................. 0
  824. Bytes of storage consumed......................... 32768
  825. Bytes of payload.................................. 0 0.0%
  826. B-tree depth...................................... 1
  827. Average payload per entry......................... 0.0
  828. Average unused bytes per entry.................... 0.0
  829. Maximum payload per entry......................... 0
  830. Entries that use overflow......................... 0
  831. Primary pages used................................ 1
  832. Overflow pages used............................... 0
  833. Total pages used.................................. 1
  834. Unused bytes on primary pages..................... 32760 99.976%
  835. Unused bytes on overflow pages.................... 0
  836. Unused bytes on all pages......................... 32760 99.976%
  837.  
  838. *** Index SQLITE_AUTOINDEX_MOZ_KEYWORDS_1 of table MOZ_KEYWORDS ***************
  839.  
  840. Percentage of total database...................... 0.45%
  841. Number of entries................................. 0
  842. Bytes of storage consumed......................... 32768
  843. Bytes of payload.................................. 0 0.0%
  844. B-tree depth...................................... 1
  845. Average payload per entry......................... 0.0
  846. Average unused bytes per entry.................... 0.0
  847. Maximum payload per entry......................... 0
  848. Entries that use overflow......................... 0
  849. Primary pages used................................ 1
  850. Overflow pages used............................... 0
  851. Total pages used.................................. 1
  852. Unused bytes on primary pages..................... 32760 99.976%
  853. Unused bytes on overflow pages.................... 0
  854. Unused bytes on all pages......................... 32760 99.976%
  855.  
  856. *** Table MOZ_PLACES and all its indices **************************************
  857.  
  858. Percentage of total database...................... 64.3%
  859. Number of entries................................. 87087
  860. Bytes of storage consumed......................... 4653056
  861. Bytes of payload.................................. 3659043 78.6%
  862. Average payload per entry......................... 42.02
  863. Average unused bytes per entry.................... 7.93
  864. Average fanout.................................... 17.00
  865. Maximum payload per entry......................... 1867
  866. Entries that use overflow......................... 0 0.0%
  867. Index pages used.................................. 8
  868. Primary pages used................................ 134
  869. Overflow pages used............................... 0
  870. Total pages used.................................. 142
  871. Unused bytes on index pages....................... 252188 96.2%
  872. Unused bytes on primary pages..................... 438258 10.0%
  873. Unused bytes on overflow pages.................... 0
  874. Unused bytes on all pages......................... 690446 14.8%
  875.  
  876. *** Table MOZ_PLACES w/o any indices ******************************************
  877.  
  878. Percentage of total database...................... 28.5%
  879. Number of entries................................. 10894
  880. Bytes of storage consumed......................... 2064384
  881. Bytes of payload.................................. 1838131 89.0%
  882. B-tree depth...................................... 2
  883. Average payload per entry......................... 168.73
  884. Average unused bytes per entry.................... 14.10
  885. Average fanout.................................... 62.00
  886. Non-sequential pages.............................. 30 48.4%
  887. Maximum payload per entry......................... 1867
  888. Entries that use overflow......................... 0 0.0%
  889. Index pages used.................................. 1
  890. Primary pages used................................ 62
  891. Overflow pages used............................... 0
  892. Total pages used.................................. 63
  893. Unused bytes on index pages....................... 32207 98.3%
  894. Unused bytes on primary pages..................... 121406 6.0%
  895. Unused bytes on overflow pages.................... 0
  896. Unused bytes on all pages......................... 153613 7.4%
  897.  
  898. *** Indices of table MOZ_PLACES ***********************************************
  899.  
  900. Percentage of total database...................... 35.7%
  901. Number of entries................................. 76193
  902. Bytes of storage consumed......................... 2588672
  903. Bytes of payload.................................. 1820912 70.3%
  904. Average payload per entry......................... 23.90
  905. Average unused bytes per entry.................... 7.05
  906. Average fanout.................................... 11.00
  907. Maximum payload per entry......................... 1823
  908. Entries that use overflow......................... 0 0.0%
  909. Index pages used.................................. 7
  910. Primary pages used................................ 72
  911. Overflow pages used............................... 0
  912. Total pages used.................................. 79
  913. Unused bytes on index pages....................... 219981 95.9%
  914. Unused bytes on primary pages..................... 316852 13.4%
  915. Unused bytes on overflow pages.................... 0
  916. Unused bytes on all pages......................... 536833 20.7%
  917.  
  918. *** Index MOZ_PLACES_FAVICONINDEX of table MOZ_PLACES *************************
  919.  
  920. Percentage of total database...................... 2.3%
  921. Number of entries................................. 10891
  922. Bytes of storage consumed......................... 163840
  923. Bytes of payload.................................. 83178 50.8%
  924. B-tree depth...................................... 2
  925. Average payload per entry......................... 7.64
  926. Average unused bytes per entry.................... 4.40
  927. Average fanout.................................... 5.00
  928. Non-sequential pages.............................. 3 75.0%
  929. Maximum payload per entry......................... 8
  930. Entries that use overflow......................... 0 0.0%
  931. Index pages used.................................. 1
  932. Primary pages used................................ 4
  933. Overflow pages used............................... 0
  934. Total pages used.................................. 5
  935. Unused bytes on index pages....................... 32711 99.83%
  936. Unused bytes on primary pages..................... 15213 11.6%
  937. Unused bytes on overflow pages.................... 0
  938. Unused bytes on all pages......................... 47924 29.3%
  939.  
  940. *** Index MOZ_PLACES_FRECENCYINDEX of table MOZ_PLACES ************************
  941.  
  942. Percentage of total database...................... 2.3%
  943. Number of entries................................. 10891
  944. Bytes of storage consumed......................... 163840
  945. Bytes of payload.................................. 76772 46.9%
  946. B-tree depth...................................... 2
  947. Average payload per entry......................... 7.05
  948. Average unused bytes per entry.................... 4.99
  949. Average fanout.................................... 5.00
  950. Non-sequential pages.............................. 3 75.0%
  951. Maximum payload per entry......................... 9
  952. Entries that use overflow......................... 0 0.0%
  953. Index pages used.................................. 1
  954. Primary pages used................................ 4
  955. Overflow pages used............................... 0
  956. Total pages used.................................. 5
  957. Unused bytes on index pages....................... 32714 99.84%
  958. Unused bytes on primary pages..................... 21616 16.5%
  959. Unused bytes on overflow pages.................... 0
  960. Unused bytes on all pages......................... 54330 33.2%
  961.  
  962. *** Index MOZ_PLACES_GUID_UNIQUEINDEX of table MOZ_PLACES *********************
  963.  
  964. Percentage of total database...................... 4.1%
  965. Number of entries................................. 10887
  966. Bytes of storage consumed......................... 294912
  967. Bytes of payload.................................. 196000 66.5%
  968. B-tree depth...................................... 2
  969. Average payload per entry......................... 18.00
  970. Average unused bytes per entry.................... 6.07
  971. Average fanout.................................... 9.00
  972. Non-sequential pages.............................. 5 62.5%
  973. Maximum payload per entry......................... 18
  974. Entries that use overflow......................... 0 0.0%
  975. Index pages used.................................. 1
  976. Primary pages used................................ 8
  977. Overflow pages used............................... 0
  978. Total pages used.................................. 9
  979. Unused bytes on index pages....................... 32581 99.43%
  980. Unused bytes on primary pages..................... 33545 12.8%
  981. Unused bytes on overflow pages.................... 0
  982. Unused bytes on all pages......................... 66126 22.4%
  983.  
  984. *** Index MOZ_PLACES_HOSTINDEX of table MOZ_PLACES ****************************
  985.  
  986. Percentage of total database...................... 5.0%
  987. Number of entries................................. 10885
  988. Bytes of storage consumed......................... 360448
  989. Bytes of payload.................................. 237383 65.9%
  990. B-tree depth...................................... 2
  991. Average payload per entry......................... 21.81
  992. Average unused bytes per entry.................... 8.29
  993. Average fanout.................................... 11.00
  994. Non-sequential pages.............................. 7 70.0%
  995. Maximum payload per entry......................... 49
  996. Entries that use overflow......................... 0 0.0%
  997. Index pages used.................................. 1
  998. Primary pages used................................ 10
  999. Overflow pages used............................... 0
  1000. Total pages used.................................. 11
  1001. Unused bytes on index pages....................... 32473 99.10%
  1002. Unused bytes on primary pages..................... 57782 17.6%
  1003. Unused bytes on overflow pages.................... 0
  1004. Unused bytes on all pages......................... 90255 25.0%
  1005.  
  1006. *** Index MOZ_PLACES_LASTVISITDATEINDEX of table MOZ_PLACES *******************
  1007.  
  1008. Percentage of total database...................... 3.2%
  1009. Number of entries................................. 10889
  1010. Bytes of storage consumed......................... 229376
  1011. Bytes of payload.................................. 150784 65.7%
  1012. B-tree depth...................................... 2
  1013. Average payload per entry......................... 13.85
  1014. Average unused bytes per entry.................... 4.21
  1015. Average fanout.................................... 7.00
  1016. Non-sequential pages.............................. 4 66.7%
  1017. Maximum payload per entry......................... 14
  1018. Entries that use overflow......................... 0 0.0%
  1019. Index pages used.................................. 1
  1020. Primary pages used................................ 6
  1021. Overflow pages used............................... 0
  1022. Total pages used.................................. 7
  1023. Unused bytes on index pages....................... 32651 99.64%
  1024. Unused bytes on primary pages..................... 13179 6.7%
  1025. Unused bytes on overflow pages.................... 0
  1026. Unused bytes on all pages......................... 45830 20.0%
  1027.  
  1028. *** Index MOZ_PLACES_URL_UNIQUEINDEX of table MOZ_PLACES **********************
  1029.  
  1030. Percentage of total database...................... 16.7%
  1031. Number of entries................................. 10859
  1032. Bytes of storage consumed......................... 1212416
  1033. Bytes of payload.................................. 1010666 83.4%
  1034. B-tree depth...................................... 2
  1035. Average payload per entry......................... 93.07
  1036. Average unused bytes per entry.................... 15.42
  1037. Average fanout.................................... 37.00
  1038. Non-sequential pages.............................. 16 44.4%
  1039. Maximum payload per entry......................... 1823
  1040. Entries that use overflow......................... 0 0.0%
  1041. Index pages used.................................. 1
  1042. Primary pages used................................ 36
  1043. Overflow pages used............................... 0
  1044. Total pages used.................................. 37
  1045. Unused bytes on index pages....................... 24134 73.7%
  1046. Unused bytes on primary pages..................... 143261 12.1%
  1047. Unused bytes on overflow pages.................... 0
  1048. Unused bytes on all pages......................... 167395 13.8%
  1049.  
  1050. *** Index MOZ_PLACES_VISITCOUNT of table MOZ_PLACES ***************************
  1051.  
  1052. Percentage of total database...................... 2.3%
  1053. Number of entries................................. 10891
  1054. Bytes of storage consumed......................... 163840
  1055. Bytes of payload.................................. 66129 40.4%
  1056. B-tree depth...................................... 2
  1057. Average payload per entry......................... 6.07
  1058. Average unused bytes per entry.................... 5.97
  1059. Average fanout.................................... 5.00
  1060. Non-sequential pages.............................. 3 75.0%
  1061. Maximum payload per entry......................... 8
  1062. Entries that use overflow......................... 0 0.0%
  1063. Index pages used.................................. 1
  1064. Primary pages used................................ 4
  1065. Overflow pages used............................... 0
  1066. Total pages used.................................. 5
  1067. Unused bytes on index pages....................... 32717 99.84%
  1068. Unused bytes on primary pages..................... 32256 24.6%
  1069. Unused bytes on overflow pages.................... 0
  1070. Unused bytes on all pages......................... 64973 39.7%
  1071.  
  1072. *** Table SQLITE_MASTER *******************************************************
  1073.  
  1074. Percentage of total database...................... 0.45%
  1075. Number of entries................................. 36
  1076. Bytes of storage consumed......................... 32768
  1077. Bytes of payload.................................. 5188 15.8%
  1078. B-tree depth...................................... 1
  1079. Average payload per entry......................... 144.11
  1080. Average unused bytes per entry.................... 758.58
  1081. Maximum payload per entry......................... 379
  1082. Entries that use overflow......................... 0 0.0%
  1083. Primary pages used................................ 1
  1084. Overflow pages used............................... 0
  1085. Total pages used.................................. 1
  1086. Unused bytes on primary pages..................... 27309 83.3%
  1087. Unused bytes on overflow pages.................... 0
  1088. Unused bytes on all pages......................... 27309 83.3%
  1089.  
  1090. *** Table SQLITE_SEQUENCE *****************************************************
  1091.  
  1092. Percentage of total database...................... 0.45%
  1093. Number of entries................................. 1
  1094. Bytes of storage consumed......................... 32768
  1095. Bytes of payload.................................. 15 0.046%
  1096. B-tree depth...................................... 1
  1097. Average payload per entry......................... 15.00
  1098. Average unused bytes per entry.................... 32741.00
  1099. Maximum payload per entry......................... 15
  1100. Entries that use overflow......................... 0 0.0%
  1101. Primary pages used................................ 1
  1102. Overflow pages used............................... 0
  1103. Total pages used.................................. 1
  1104. Unused bytes on primary pages..................... 32741 99.918%
  1105. Unused bytes on overflow pages.................... 0
  1106. Unused bytes on all pages......................... 32741 99.918%
  1107.  
  1108. *** Table SQLITE_STAT1 ********************************************************
  1109.  
  1110. Percentage of total database...................... 0.45%
  1111. Number of entries................................. 15
  1112. Bytes of storage consumed......................... 32768
  1113. Bytes of payload.................................. 762 2.3%
  1114. B-tree depth...................................... 1
  1115. Average payload per entry......................... 50.80
  1116. Average unused bytes per entry.................... 2128.20
  1117. Maximum payload per entry......................... 62
  1118. Entries that use overflow......................... 0 0.0%
  1119. Primary pages used................................ 1
  1120. Overflow pages used............................... 0
  1121. Total pages used.................................. 1
  1122. Unused bytes on primary pages..................... 31923 97.4%
  1123. Unused bytes on overflow pages.................... 0
  1124. Unused bytes on all pages......................... 31923 97.4%
  1125.  
  1126. *** Definitions ***************************************************************
  1127.  
  1128. Page size in bytes
  1129.  
  1130. The number of bytes in a single page of the database file.
  1131. Usually 1024.
  1132.  
  1133. Number of pages in the whole file
  1134.  
  1135. The number of 32768-byte pages that go into forming the complete
  1136. database
  1137.  
  1138. Pages that store data
  1139.  
  1140. The number of pages that store data, either as primary B*Tree pages or
  1141. as overflow pages. The number at the right is the data pages divided by
  1142. the total number of pages in the file.
  1143.  
  1144. Pages on the freelist
  1145.  
  1146. The number of pages that are not currently in use but are reserved for
  1147. future use. The percentage at the right is the number of freelist pages
  1148. divided by the total number of pages in the file.
  1149.  
  1150. Pages of auto-vacuum overhead
  1151.  
  1152. The number of pages that store data used by the database to facilitate
  1153. auto-vacuum. This is zero for databases that do not support auto-vacuum.
  1154.  
  1155. Number of tables in the database
  1156.  
  1157. The number of tables in the database, including the SQLITE_MASTER table
  1158. used to store schema information.
  1159.  
  1160. Number of indices
  1161.  
  1162. The total number of indices in the database.
  1163.  
  1164. Number of defined indices
  1165.  
  1166. The number of indices created using an explicit CREATE INDEX statement.
  1167.  
  1168. Number of implied indices
  1169.  
  1170. The number of indices used to implement PRIMARY KEY or UNIQUE constraints
  1171. on tables.
  1172.  
  1173. Size of the file in bytes
  1174.  
  1175. The total amount of disk space used by the entire database files.
  1176.  
  1177. Bytes of user payload stored
  1178.  
  1179. The total number of bytes of user payload stored in the database. The
  1180. schema information in the SQLITE_MASTER table is not counted when
  1181. computing this number. The percentage at the right shows the payload
  1182. divided by the total file size.
  1183.  
  1184. Percentage of total database
  1185.  
  1186. The amount of the complete database file that is devoted to storing
  1187. information described by this category.
  1188.  
  1189. Number of entries
  1190.  
  1191. The total number of B-Tree key/value pairs stored under this category.
  1192.  
  1193. Bytes of storage consumed
  1194.  
  1195. The total amount of disk space required to store all B-Tree entries
  1196. under this category. The is the total number of pages used times
  1197. the pages size.
  1198.  
  1199. Bytes of payload
  1200.  
  1201. The amount of payload stored under this category. Payload is the data
  1202. part of table entries and the key part of index entries. The percentage
  1203. at the right is the bytes of payload divided by the bytes of storage
  1204. consumed.
  1205.  
  1206. Average payload per entry
  1207.  
  1208. The average amount of payload on each entry. This is just the bytes of
  1209. payload divided by the number of entries.
  1210.  
  1211. Average unused bytes per entry
  1212.  
  1213. The average amount of free space remaining on all pages under this
  1214. category on a per-entry basis. This is the number of unused bytes on
  1215. all pages divided by the number of entries.
  1216.  
  1217. Non-sequential pages
  1218.  
  1219. The number of pages in the table or index that are out of sequence.
  1220. Many filesystems are optimized for sequential file access so a small
  1221. number of non-sequential pages might result in faster queries,
  1222. especially for larger database files that do not fit in the disk cache.
  1223. Note that after running VACUUM, the root page of each table or index is
  1224. at the beginning of the database file and all other pages are in a
  1225. separate part of the database file, resulting in a single non-
  1226. sequential page.
  1227.  
  1228. Maximum payload per entry
  1229.  
  1230. The largest payload size of any entry.
  1231.  
  1232. Entries that use overflow
  1233.  
  1234. The number of entries that user one or more overflow pages.
  1235.  
  1236. Total pages used
  1237.  
  1238. This is the number of pages used to hold all information in the current
  1239. category. This is the sum of index, primary, and overflow pages.
  1240.  
  1241. Index pages used
  1242.  
  1243. This is the number of pages in a table B-tree that hold only key (rowid)
  1244. information and no data.
  1245.  
  1246. Primary pages used
  1247.  
  1248. This is the number of B-tree pages that hold both key and data.
  1249.  
  1250. Overflow pages used
  1251.  
  1252. The total number of overflow pages used for this category.
  1253.  
  1254. Unused bytes on index pages
  1255.  
  1256. The total number of bytes of unused space on all index pages. The
  1257. percentage at the right is the number of unused bytes divided by the
  1258. total number of bytes on index pages.
  1259.  
  1260. Unused bytes on primary pages
  1261.  
  1262. The total number of bytes of unused space on all primary pages. The
  1263. percentage at the right is the number of unused bytes divided by the
  1264. total number of bytes on primary pages.
  1265.  
  1266. Unused bytes on overflow pages
  1267.  
  1268. The total number of bytes of unused space on all overflow pages. The
  1269. percentage at the right is the number of unused bytes divided by the
  1270. total number of bytes on overflow pages.
  1271.  
  1272. Unused bytes on all pages
  1273.  
  1274. The total number of bytes of unused space on all primary and overflow
  1275. pages. The percentage at the right is the number of unused bytes
  1276. divided by the total number of bytes.
  1277.  
  1278. *******************************************************************************
  1279. The entire text of this report can be sourced into any SQL database
  1280. engine for further analysis. All of the text above is an SQL comment.
  1281. The data used to generate this report follows:
  1282. */
  1283. BEGIN;
  1284. CREATE TABLE space_used(
  1285. name clob, -- Name of a table or index in the database file
  1286. tblname clob, -- Name of associated table
  1287. is_index boolean, -- TRUE if it is an index, false for a table
  1288. nentry int, -- Number of entries in the BTree
  1289. leaf_entries int, -- Number of leaf entries
  1290. depth int, -- Depth of the b-tree
  1291. payload int, -- Total amount of data stored in this table or index
  1292. ovfl_payload int, -- Total amount of data stored on overflow pages
  1293. ovfl_cnt int, -- Number of entries that use overflow
  1294. mx_payload int, -- Maximum payload size
  1295. int_pages int, -- Number of interior pages used
  1296. leaf_pages int, -- Number of leaf pages used
  1297. ovfl_pages int, -- Number of overflow pages used
  1298. int_unused int, -- Number of unused bytes on interior pages
  1299. leaf_unused int, -- Number of unused bytes on primary pages
  1300. ovfl_unused int, -- Number of unused bytes on overflow pages
  1301. gap_cnt int, -- Number of gaps in the page layout
  1302. compressed_size int -- Total bytes stored on disk
  1303. );
  1304. INSERT INTO space_used VALUES('sqlite_master','sqlite_master',0,36,36,1,5188,0,0,379,0,1,0,0,27309,0,0,32768);
  1305. INSERT INTO space_used VALUES('moz_places','moz_places',0,10955,10894,2,1838131,0,0,1867,1,62,0,32207,121406,0,30,2064384);
  1306. INSERT INTO space_used VALUES('moz_historyvisits','moz_historyvisits',0,15884,15873,2,308447,0,0,21,1,12,0,32668,5435,0,8,425984);
  1307. INSERT INTO space_used VALUES('moz_inputhistory','moz_inputhistory',0,8,8,1,341,0,0,71,0,1,0,0,32379,0,0,32768);
  1308. INSERT INTO space_used VALUES('sqlite_autoindex_moz_inputhistory_1','moz_inputhistory',1,8,8,1,301,0,0,65,0,1,0,0,32435,0,0,32768);
  1309. INSERT INTO space_used VALUES('moz_hosts','moz_hosts',0,628,628,1,14640,0,0,49,0,1,0,0,15012,0,0,32768);
  1310. INSERT INTO space_used VALUES('sqlite_autoindex_moz_hosts_1','moz_hosts',1,628,628,1,13000,0,0,47,0,1,0,0,17876,0,0,32768);
  1311. INSERT INTO space_used VALUES('moz_bookmarks','moz_bookmarks',0,313,313,1,21937,0,0,518,0,1,0,0,9358,0,0,32768);
  1312. INSERT INTO space_used VALUES('moz_bookmarks_roots','moz_bookmarks_roots',0,5,5,1,47,0,0,11,0,1,0,0,32693,0,0,32768);
  1313. INSERT INTO space_used VALUES('sqlite_autoindex_moz_bookmarks_roots_1','moz_bookmarks_roots',1,5,5,1,47,0,0,11,0,1,0,0,32698,0,0,32768);
  1314. INSERT INTO space_used VALUES('moz_keywords','moz_keywords',0,0,0,1,0,0,0,0,0,1,0,0,32760,0,0,32768);
  1315. INSERT INTO space_used VALUES('sqlite_autoindex_moz_keywords_1','moz_keywords',1,0,0,1,0,0,0,0,0,1,0,0,32760,0,0,32768);
  1316. INSERT INTO space_used VALUES('sqlite_sequence','sqlite_sequence',0,1,1,1,15,0,0,15,0,1,0,0,32741,0,0,32768);
  1317. INSERT INTO space_used VALUES('moz_favicons','moz_favicons',0,481,471,2,297630,0,0,7640,1,11,0,32676,59923,0,6,393216);
  1318. INSERT INTO space_used VALUES('sqlite_autoindex_moz_favicons_1','moz_favicons',1,471,470,2,35135,0,0,7259,1,2,0,32664,29057,0,1,98304);
  1319. INSERT INTO space_used VALUES('moz_anno_attributes','moz_anno_attributes',0,12,12,1,355,0,0,42,0,1,0,0,32357,0,0,32768);
  1320. INSERT INTO space_used VALUES('sqlite_autoindex_moz_anno_attributes_1','moz_anno_attributes',1,12,12,1,366,0,0,43,0,1,0,0,32358,0,0,32768);
  1321. INSERT INTO space_used VALUES('moz_annos','moz_annos',0,195,195,1,12115,0,0,127,0,1,0,0,19702,0,0,32768);
  1322. INSERT INTO space_used VALUES('moz_items_annos','moz_items_annos',0,79,79,1,8649,0,0,384,0,1,0,0,23743,0,0,32768);
  1323. INSERT INTO space_used VALUES('sqlite_stat1','sqlite_stat1',0,15,15,1,762,0,0,62,0,1,0,0,31923,0,0,32768);
  1324. INSERT INTO space_used VALUES('moz_places_faviconindex','moz_places',1,10894,10891,2,83178,0,0,8,1,4,0,32711,15213,0,3,163840);
  1325. INSERT INTO space_used VALUES('moz_places_hostindex','moz_places',1,10894,10885,2,237383,0,0,49,1,10,0,32473,57782,0,7,360448);
  1326. INSERT INTO space_used VALUES('moz_places_visitcount','moz_places',1,10894,10891,2,66129,0,0,8,1,4,0,32717,32256,0,3,163840);
  1327. INSERT INTO space_used VALUES('moz_places_frecencyindex','moz_places',1,10894,10891,2,76772,0,0,9,1,4,0,32714,21616,0,3,163840);
  1328. INSERT INTO space_used VALUES('moz_places_lastvisitdateindex','moz_places',1,10894,10889,2,150784,0,0,14,1,6,0,32651,13179,0,4,229376);
  1329. INSERT INTO space_used VALUES('moz_historyvisits_placedateindex','moz_historyvisits',1,15873,15863,2,267273,0,0,17,1,11,0,32516,45668,0,8,393216);
  1330. INSERT INTO space_used VALUES('moz_historyvisits_fromindex','moz_historyvisits',1,15873,15869,2,100292,0,0,7,1,5,0,32702,15927,0,4,196608);
  1331. INSERT INTO space_used VALUES('moz_historyvisits_dateindex','moz_historyvisits',1,15873,15865,2,206221,0,0,13,1,9,0,32596,41128,0,6,327680);
  1332. INSERT INTO space_used VALUES('moz_bookmarks_itemindex','moz_bookmarks',1,313,313,1,2547,0,0,9,0,1,0,0,29274,0,0,32768);
  1333. INSERT INTO space_used VALUES('moz_bookmarks_parentindex','moz_bookmarks',1,313,313,1,2393,0,0,9,0,1,0,0,29428,0,0,32768);
  1334. INSERT INTO space_used VALUES('moz_bookmarks_itemlastmodifiedindex','moz_bookmarks',1,313,313,1,5020,0,0,17,0,1,0,0,26801,0,0,32768);
  1335. INSERT INTO space_used VALUES('moz_places_url_uniqueindex','moz_places',1,10894,10859,2,1010666,0,0,1823,1,36,0,24134,143261,0,16,1212416);
  1336. INSERT INTO space_used VALUES('moz_places_guid_uniqueindex','moz_places',1,10894,10887,2,196000,0,0,18,1,8,0,32581,33545,0,5,294912);
  1337. INSERT INTO space_used VALUES('moz_bookmarks_guid_uniqueindex','moz_bookmarks',1,313,313,1,5207,0,0,17,0,1,0,0,26614,0,0,32768);
  1338. INSERT INTO space_used VALUES('moz_annos_placeattributeindex','moz_annos',1,195,195,1,1871,0,0,10,0,1,0,0,30304,0,0,32768);
  1339. INSERT INTO space_used VALUES('moz_items_annos_itemattributeindex','moz_items_annos',1,79,79,1,562,0,0,9,0,1,0,0,31961,0,0,32768);
  1340. INSERT INTO space_used VALUES('moz_keywords_placepostdata_uniqueindex','moz_keywords',1,0,0,1,0,0,0,0,0,1,0,0,32760,0,0,32768);
  1341. COMMIT;