Get the latest tech news

Django SQLite Production Config


Optimize your Django SQLite configuration for production.

SQLite is optimized for embedded low-concurrency systems out of the box, which is the exact opposite of what your Django application is supposed to do. The magic values below are now also the default in Rails 7.1 and should give you a good starting point, but feel free to tweak mmap_size, journal_size_limit, and cache_size to best suit your application: That’s it; with these settings, your SQLite database is going to handle the load that most small to medium-sized websites typically get, as long as your use case isn’t write-heavy!

Get the Android app

Or read this on Hacker News

Read more on:

Photo of config

config

Related news:

News photo

Make your own backdoor: CFLAGS code injection, Makefile injection, pkg-config

News photo

It was online for 3 seconds before getting a 404 request for /.git/config