你可以使用sqlite_anlyzer从
http://www.sqlite.org/download.html
原文链接:https://www.f2er.com/sqlite/198157.html这是一个非常酷的工具。显示每个使用和不使用索引的表的页数(每个页面默认为1024字节)
这是northwind数据库的示例sqlite3_analyzer.exe输出:
*** Page counts for all tables with their indices ******************** EMPLOYEES............................. 200 34.4% ORDERS................................ 152 26.2% CATEGORIES............................ 90 15.5% ORDER DETAILS......................... 81 13.9% CUSTOMERS............................. 17 2.9% sqlITE_MASTER......................... 11 1.9% PRODUCTS.............................. 7 1.2% SUPPLIERS............................. 7 1.2% TERRITORIES........................... 6 1.0% CUSTOMERCUSTOMERDEMO.................. 2 0.34% CUSTOMERDEMOGRAPHICS.................. 2 0.34% EMPLOYEETERRITORIES................... 2 0.34% REGION................................ 2 0.34% SHIPPERS.............................. 2 0.34%