mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-22 06:03:23 +02:00
switch sqlite to use WAL mode by default to prevent database locked errors
This commit is contained in:
@@ -107,6 +107,9 @@ DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': DATABASE_NAME,
|
||||
'OPTIONS': {
|
||||
'init_command': 'PRAGMA journal_mode=wal;',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -125,10 +125,12 @@ ALLOWED_IN_OUTPUT_DIR = {
|
||||
'node_modules',
|
||||
'package-lock.json',
|
||||
'static',
|
||||
'sonic',
|
||||
ARCHIVE_DIR_NAME,
|
||||
SOURCES_DIR_NAME,
|
||||
LOGS_DIR_NAME,
|
||||
SQL_INDEX_FILENAME,
|
||||
f'{SQL_INDEX_FILENAME}-wal',
|
||||
JSON_INDEX_FILENAME,
|
||||
HTML_INDEX_FILENAME,
|
||||
ROBOTS_TXT_FILENAME,
|
||||
|
Reference in New Issue
Block a user