SQLite as a production database for a low-traffic site?

后端 未结 10 561
半阙折子戏
半阙折子戏 2020-12-12 21:32

I\'m considering using SQLite as a production database for a site that would receive perhaps 20 simultaneous users, but with the potential for a peak that could be many mult

10条回答
  •  余生分开走
    2020-12-12 22:17

    We have encountered a similar option on an environment with absolutely no writes, and we selected using SQLite.

    See my blog post on the subject:

    Well, the main assumption which makes this solution theoretically possible is that our SQLite database is totally read-only. Our server code should never change it. This would solve any locking problems, as there are no read locks. We could find nowhere on the internet anyone saying there is a problem in high-throughput reading of SQLite when there are no writes - it could be possible!

提交回复
热议问题