mirror of
https://github.com/sissbruecker/linkding
synced 2025-02-16 12:28:23 +00:00
Fix memory leak with SQLite (#548)
This commit is contained in:
parent
1e10d7eb4a
commit
f756e28daf
1 changed files with 5 additions and 0 deletions
|
@ -225,6 +225,11 @@ else:
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.sqlite3',
|
||||||
'NAME': os.path.join(BASE_DIR, 'data', 'db.sqlite3'),
|
'NAME': os.path.join(BASE_DIR, 'data', 'db.sqlite3'),
|
||||||
'OPTIONS': LD_DB_OPTIONS,
|
'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 = {
|
DATABASES = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue