mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Merge pull request #1455 from ferferga/release-10.3.z
Vacuum databases at startup
This commit is contained in:
commit
54c6f02ebb
1 changed files with 2 additions and 0 deletions
|
@ -223,6 +223,8 @@ namespace Emby.Server.Implementations.Data
|
||||||
"pragma temp_store = file"
|
"pragma temp_store = file"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// Configuration and pragmas can affect VACUUM so it needs to be last.
|
||||||
|
queries.Add("VACUUM");
|
||||||
|
|
||||||
db.ExecuteAll(string.Join(";", queries));
|
db.ExecuteAll(string.Join(";", queries));
|
||||||
Logger.LogInformation("PRAGMA synchronous=" + db.Query("PRAGMA synchronous").SelectScalarString().First());
|
Logger.LogInformation("PRAGMA synchronous=" + db.Query("PRAGMA synchronous").SelectScalarString().First());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue