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

This commit is contained in:
Mark McDowall 2012-08-14 11:51:25 -07:00
parent 653a0864c3
commit c2a1df61f6
3 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View 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)

View File

@ -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();