Sqlite stats选项-返回的性能值意味着什么?
SQLite在命令行界面'.stats on | off'中有一个'dot'选项 sqlite.org上没有关于此选项的信息(我可以找到)。事实上,我只是通过命令行“help”工具找到了这个选项 以下是示例查询的输出值: Memory Used: 4601840 (max 4610656) bytes Number of Outstanding Allocations: 3211 (max 14741) Number of Pcache Overflow Bytes: 4509184 (max 4509184) bytes Number of Scratch Overflow Bytes: 0 (max 6656) bytes Largest Allocation: 64000 bytes Largest Pcache Allocation: 1172 bytes Largest Scratch Allocation: 6640 bytes Lookaside Slots Used: 6 (max 500) Successful lookaside attempts: 27671 Lookaside failures due to size: 26080 Lookaside failures due to OOM: 24876 Pager Heap Usage: 3417516 bytes Page cache hits: 2080 Page cache misses: 640 Page cache writes: 939 Schema Heap Usage: 8024 bytes Statement Heap/Lookaside Usage: 4624 bytes Fullscan Steps: 12926 Sort Operations: 1 Autoindex Inserts: 0 使用内存:4601840(最大4610656)字节 未分配数量:3211(最多14741) Pcache溢出字节数:4509184(最大4509184)字节 暂存溢出字节数:0(最大6656)字节 最大分配:64000字节 最大Pcache分配:1172字节 最大暂存分配:6640字节 使用的旁侧插槽:6个(最多500个) 成功的查找尝试:27671 由于大小:26080而导致的查找失败 由于OOM:24876导致的查找失败 寻呼机堆使用率:3417516字节 页面缓存命中率:2080 页面缓存未命中:640 页面缓存写入:939 架构堆使用率:8024字节 语句堆/查找用法:4624字节 完整扫描步骤:12926 排序操作:1 自动索引插入:0 有人知道这些是什么意思,以及如何使用它们来分析查询性能吗Sqlite stats选项-返回的性能值意味着什么?,sqlite,Sqlite,SQLite在命令行界面'.stats on | off'中有一个'dot'选项 sqlite.org上没有关于此选项的信息(我可以找到)。事实上,我只是通过命令行“help”工具找到了这个选项 以下是示例查询的输出值: Memory Used: 4601840 (max 4610656) bytes Number of Outstanding Allocations: 3211 (max 14741) Number of Pcache Ove
谢谢。正如您所看到的,这些值对于不擅长数据库的人来说并不容易理解,因此,如果您只是想寻找一般分析查询性能的方法,您可以寻找开源基准测试工具,或者自己进行一些简单的查询