feat(db): add support for SQLite WAL mode

This commit is contained in:
InfinityPacer
2024-11-12 17:23:57 +08:00
parent 2f8c815053
commit c7be304085

View File

@@ -27,6 +27,7 @@ const SystemSettings = ref<any>({
AUXILIARY_AUTH_ENABLE: false,
GLOBAL_IMAGE_CACHE: false,
BIG_MEMORY_MODE: false,
DB_WAL_ENABLE: false,
// 媒体
TMDB_API_DOMAIN: null,
TMDB_IMAGE_DOMAIN: null,
@@ -572,6 +573,14 @@ onDeactivated(() => {
persistent-hint
/>
</VCol>
<VCol cols="12" md="6">
<VSwitch
v-model="SystemSettings.Advanced.DB_WAL_ENABLE"
label="WAL模式"
hint="可提升读写并发性能,但可能在异常情况下增加数据丢失风险,更改后需重启生效"
persistent-hint
/>
</VCol>
</VRow>
</div>
</VWindowItem>