开发者

SQLite: Optimal PAGE_SIZE

I read that the default PAGE_SIZE value of 1024 in SQLite has been chosen merely for compatiblity between different开发者_运维技巧 platforms and operatings systems.

Since my app runs only on Windows systems, would it be safe to increase it to a larger value (like 4096) or could it have any unwanted side-effects?


The only drawback is that an ill-adjusted page-size could make your database slower. Ultimately, page_size optimization will depend on four factors:

  • platform
  • schema
  • data
  • queries (i.e. usage)

Test and compare, that's the only way.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜