Moved VACUUM down to the end of the list.
This commit is contained in:
parent
b136f14084
commit
7587fe56d8
|
@ -203,7 +203,6 @@ namespace Emby.Server.Implementations.Data
|
||||||
{
|
{
|
||||||
var queries = new List<string>
|
var queries = new List<string>
|
||||||
{
|
{
|
||||||
"VACUUM",
|
|
||||||
"PRAGMA journal_mode=WAL",
|
"PRAGMA journal_mode=WAL",
|
||||||
"PRAGMA page_size=4096",
|
"PRAGMA page_size=4096",
|
||||||
"PRAGMA synchronous=Normal"
|
"PRAGMA synchronous=Normal"
|
||||||
|
@ -224,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…
Reference in New Issue
Block a user