开发者

SQLite: Optimal PAGE_SIZE

开发者 https://www.devze.com 2023-04-12 16:46 出处:网络
I read that the default PAGE_SIZE value of 1024 in SQLite has been chosen merely for compatiblity between different开发者_运维技巧 platforms and operatings systems.

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

精彩评论

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

关注公众号