From a69ec269f148e9280d6d0cd3706aaffc3ce76c0b Mon Sep 17 00:00:00 2001 From: Halo Master Date: Sun, 28 Aug 2022 21:49:27 +0800 Subject: [PATCH] Change journal mode to WAL THE `WAL` mode is mush faster then `DELETE` mode for the sqlite. --- docarray/array/storage/sqlite/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docarray/array/storage/sqlite/backend.py b/docarray/array/storage/sqlite/backend.py index 856e42886ea..10e48ecbfe7 100644 --- a/docarray/array/storage/sqlite/backend.py +++ b/docarray/array/storage/sqlite/backend.py @@ -33,7 +33,7 @@ class SqliteConfig: table_name: Optional[str] = None serialize_config: Dict = field(default_factory=dict) conn_config: Dict = field(default_factory=dict) - journal_mode: str = 'DELETE' + journal_mode: str = 'WAL' synchronous: str = 'OFF'