Changed db optimization strategy: now perform a full analyze (only after scan if enough changes has been made, and during application startup). Also perform a vacuum if needed during startup. Added an init screen for the web interface since it can take a while to complete
This commit is contained in:
@@ -60,8 +60,8 @@ namespace lms::db::tests
|
||||
_tmpDb = std::make_unique<TmpDatabase>();
|
||||
{
|
||||
db::Session s{ _tmpDb->getDb() };
|
||||
s.prepareTables();
|
||||
s.analyze();
|
||||
s.prepareTablesIfNeeded();
|
||||
s.createIndexesIfNeeded();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user