如何使用SQLite提高Windows服务的性能以保存设置?

时间:2016-01-20 19:53:34

标签: performance sqlite

环境:Windows服务,读取/更新存储在SQLite数据库中的60种不同设置(整数值和字符串)中的任何一种。这是磁盘上的.db文件。

如何改善服务表现?请记住,

1.There will be no new inserts (ignoring addition of few hundred URLs once a day while overwriting the older ones). Size of the DB will be more or less constant in range 1-2MB or at most 5 MB.
2. Most of the times service is reading values.
3. Another service update some of these settings. (say once an hour)
4. Schema is simple so do not expect any optimization on that front.
5. Using ProcMon gives me that there are 80-90 ReadFile requests per transaction on the same .db file, will each of these go to disk?

0 个答案:

没有答案
相关问题