Added some code to shrink the DB. reworked the search to speed it up.

This commit is contained in:
tidusjar 2016-08-08 15:41:01 +01:00
commit 6f008f77a3
6 changed files with 156 additions and 156 deletions

View file

@ -48,11 +48,16 @@ namespace PlexRequests.Core
Db = new DbConfiguration(new SqliteFactory());
var created = Db.CheckDb();
TableCreation.CreateTables(Db.DbConnection());
if (created)
{
CreateDefaultSettingsPage(urlBase);
}
else
{
// Shrink DB
TableCreation.Vacuum(Db.DbConnection());
}
var version = CheckSchema();
if (version > 0)