mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 22:54:27 -04:00
switch sqlite to use WAL mode by default to prevent database locked errors
This commit is contained in:
parent
188670eb8b
commit
611216765d
2 changed files with 5 additions and 0 deletions
|
@ -107,6 +107,9 @@ DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.sqlite3',
|
||||||
'NAME': DATABASE_NAME,
|
'NAME': DATABASE_NAME,
|
||||||
|
'OPTIONS': {
|
||||||
|
'init_command': 'PRAGMA journal_mode=wal;',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -125,10 +125,12 @@ ALLOWED_IN_OUTPUT_DIR = {
|
||||||
'node_modules',
|
'node_modules',
|
||||||
'package-lock.json',
|
'package-lock.json',
|
||||||
'static',
|
'static',
|
||||||
|
'sonic',
|
||||||
ARCHIVE_DIR_NAME,
|
ARCHIVE_DIR_NAME,
|
||||||
SOURCES_DIR_NAME,
|
SOURCES_DIR_NAME,
|
||||||
LOGS_DIR_NAME,
|
LOGS_DIR_NAME,
|
||||||
SQL_INDEX_FILENAME,
|
SQL_INDEX_FILENAME,
|
||||||
|
f'{SQL_INDEX_FILENAME}-wal',
|
||||||
JSON_INDEX_FILENAME,
|
JSON_INDEX_FILENAME,
|
||||||
HTML_INDEX_FILENAME,
|
HTML_INDEX_FILENAME,
|
||||||
ROBOTS_TXT_FILENAME,
|
ROBOTS_TXT_FILENAME,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue