Skip to content

Commit

Permalink
Fix memory leak with SQLite (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
sissbruecker authored Oct 6, 2023
1 parent 1e10d7e commit f756e28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions siteroot/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'data', 'db.sqlite3'),
'OPTIONS': LD_DB_OPTIONS,
# Creating a connection loads the ICU extension into the SQLite
# connection, and also loads an ICU collation. The latter causes a
# memory leak, so try to counter that by making connections indefinitely
# persistent.
'CONN_MAX_AGE': None
}

DATABASES = {
Expand Down

0 comments on commit f756e28

Please sign in to comment.