parent
f973a42669
commit
23b90ae1c4
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
<Eloquera xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<Cache IndexCacheSize="10000"
|
||||
WriteThru="false"
|
||||
IndexCleanerPeriod="100"
|
||||
IndexCleanerBatchSize="100"
|
||||
CleanerPeriod="100"
|
||||
CleanerBatchSize="2000"
|
||||
CommitSequenceMaxLength="2000"
|
||||
ShallowReadThreshold="1000"
|
||||
ShallowReadAhead="1000"
|
||||
ReadAhead="20"
|
||||
SaturationThreshold="10000"
|
||||
MemoryFootPrint="60"/>
|
||||
<MemoryManager Mode="1" />
|
||||
<Server ServerPort="43962"
|
||||
Trace="true"
|
||||
InMemoryAllowed="true"
|
||||
Secure="false"
|
||||
AllowUsers=""
|
||||
AllowGroups="Everyone"
|
||||
SNMPAddress="net.tcp://localhost:8523/SNMP"
|
||||
AutoRecovery="false"
|
||||
NotificationsEnabled="false"
|
||||
VarSectorSize="40"
|
||||
IndexNodeSize="512"/>
|
||||
<SmartRuntime Smart="true"
|
||||
TypeUpdateAllowed="true"/>
|
||||
<UserLogin Enabled="false"
|
||||
PasswordHash="l+on1aCwDrcZ5bGlv+fyyIlYkbuFIOxZFlFwIGKlms0CCwoGn9TZvM0E3Uksjwx64+/yv8nsaUajWLz1kyKG7A==" />
|
||||
</Eloquera>
|
@ -1,25 +0,0 @@
|
||||
using System.Linq;
|
||||
using Db4objects.Db4o;
|
||||
using Db4objects.Db4o.IO;
|
||||
using Db4objects.Db4o.Internal;
|
||||
|
||||
namespace NzbDrone.Core.Datastore
|
||||
{
|
||||
public class ObjectDbSessionFactory
|
||||
{
|
||||
public IObjectDbSession Create(IStorage storage = null, string dbName = "nzbdrone.db4o")
|
||||
{
|
||||
if (storage == null)
|
||||
{
|
||||
storage = new FileStorage();
|
||||
}
|
||||
|
||||
var config = Db4oEmbedded.NewConfiguration();
|
||||
config.File.Storage = storage;
|
||||
|
||||
|
||||
var objectContainer = Db4oEmbedded.OpenFile(config, dbName);
|
||||
return new ObjectDbSession((ObjectContainerBase)objectContainer);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
<Eloquera xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<Cache IndexCacheSize="10000"
|
||||
WriteThru="false"
|
||||
IndexCleanerPeriod="100"
|
||||
IndexCleanerBatchSize="100"
|
||||
CleanerPeriod="100"
|
||||
CleanerBatchSize="2000"
|
||||
CommitSequenceMaxLength="2000"
|
||||
ShallowReadThreshold="1000"
|
||||
ShallowReadAhead="1000"
|
||||
ReadAhead="20"
|
||||
SaturationThreshold="10000"
|
||||
MemoryFootPrint="60"/>
|
||||
<MemoryManager Mode="1" />
|
||||
<Server ServerPort="43962"
|
||||
Trace="true"
|
||||
InMemoryAllowed="true"
|
||||
Secure="false"
|
||||
AllowUsers=""
|
||||
AllowGroups="Everyone"
|
||||
SNMPAddress="net.tcp://localhost:8523/SNMP"
|
||||
AutoRecovery="false"
|
||||
NotificationsEnabled="false"
|
||||
VarSectorSize="40"
|
||||
IndexNodeSize="512"/>
|
||||
<SmartRuntime Smart="true"
|
||||
TypeUpdateAllowed="true"/>
|
||||
<UserLogin Enabled="false"
|
||||
PasswordHash="l+on1aCwDrcZ5bGlv+fyyIlYkbuFIOxZFlFwIGKlms0CCwoGn9TZvM0E3Uksjwx64+/yv8nsaUajWLz1kyKG7A==" />
|
||||
</Eloquera>
|
Loading…
Reference in new issue