diff --git a/src/NzbDrone.Core/Datastore/DbFactory.cs b/src/NzbDrone.Core/Datastore/DbFactory.cs index 6fea8181a..6d0e4a615 100644 --- a/src/NzbDrone.Core/Datastore/DbFactory.cs +++ b/src/NzbDrone.Core/Datastore/DbFactory.cs @@ -15,7 +15,6 @@ public interface IDbFactory IDatabase Create(MigrationType migrationType = MigrationType.Main); } - public class DbFactory : IDbFactory { private readonly IMigrationController _migrationController; @@ -79,8 +78,11 @@ public IDatabase Create(MigrationType migrationType = MigrationType.Main) return dataMapper; }); - db.Vacuum(); + if (migrationType == MigrationType.Main) + { + db.Vacuum(); + } return db; }