mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Added some code to shrink the DB. reworked the search to speed it up.
This commit is contained in:
parent
97b1901a64
commit
6f008f77a3
6 changed files with 156 additions and 156 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue