New cache_size_kb config for SQLite, closes #304

This commit is contained in:
Simon Willison 2018-06-04 09:02:07 -07:00
commit 29edbe90ff
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
4 changed files with 33 additions and 0 deletions

View file

@ -110,3 +110,12 @@ Default HTTP caching max-age header in seconds, used for ``Cache-Control: max-ag
::
datasette mydatabase.db --config default_cache_ttl:10
cache_size_kb
-------------
Sets the amount of memory SQLite uses for its `per-connection cache <https://www.sqlite.org/pragma.html#pragma_cache_size>`_, in KB.
::
datasette mydatabase.db --config cache_size_kb:5000