Raised analysis_limit from 1000 to 2000 as 1k is not enough to speed up all queries (ex. sort artists by last write)

This commit is contained in:
emeric
2023-11-02 15:03:05 +01:00
parent 0801914290
commit fa11a1df9b
+1 -1
View File
@@ -66,7 +66,7 @@ namespace Database
LMS_LOG(DB, DEBUG) << "Setting per-connection settings..."; LMS_LOG(DB, DEBUG) << "Setting per-connection settings...";
executeSql("pragma journal_mode=WAL"); executeSql("pragma journal_mode=WAL");
executeSql("pragma synchronous=normal"); executeSql("pragma synchronous=normal");
executeSql("pragma analysis_limit=1000"); // to help make analyze command faster executeSql("pragma analysis_limit=2000"); // to help make analyze command faster, 1000 does not seem to be enough to speed up all queries
LMS_LOG(DB, DEBUG) << "Setting per-connection settings done!"; LMS_LOG(DB, DEBUG) << "Setting per-connection settings done!";
} }