New: Max DB Size is now 512MB (was 256MB)

pull/19/head
Mark McDowall 13 years ago
parent 653a0864c3
commit c2a1df61f6

@ -77,7 +77,7 @@ namespace NzbDrone.Common
return Path.Combine(environmentProvider.ApplicationPath, APP_CONFIG_FILE);
}
public static string GetNzbDronoeDbFile(this EnvironmentProvider environmentProvider)
public static string GetNzbDroneDbFile(this EnvironmentProvider environmentProvider)
{
return Path.Combine(environmentProvider.GetAppDataPath(), NZBDRONE_DB_FILE);
}

@ -32,7 +32,7 @@ namespace NzbDrone.Core.Datastore
{
get
{
return GetConnectionString(_environmentProvider.GetNzbDronoeDbFile());
return GetConnectionString(_environmentProvider.GetNzbDroneDbFile());
}
}
@ -46,7 +46,7 @@ namespace NzbDrone.Core.Datastore
public static string GetConnectionString(string path)
{
return String.Format("Data Source={0}", path);
return String.Format("Data Source=\"{0}\"; Max Database Size = 512;", path);
}
public IDatabase GetMainPetaPocoDb(Boolean profiled = true)

@ -25,7 +25,7 @@ namespace NzbDrone.Core.Providers
public virtual string CreateBackupZip()
{
var dbFile = _environmentProvider.GetNzbDronoeDbFile();
var dbFile = _environmentProvider.GetNzbDroneDbFile();
var configFile = _environmentProvider.GetConfigPath();
var zipFile = _environmentProvider.GetConfigBackupFile();

Loading…
Cancel
Save