You are here: Configuration > Common Configuration > Weak Reference Collection Interval

Weak Reference Collection Interval

By default db4o uses weak references to keep track of loaded objects. These weak references need to be clean up from time to time. You can change this collection-interval.

IEmbeddedConfiguration configuration = Db4oEmbedded.NewConfiguration();
configuration.Common.WeakReferenceCollectionInterval = (10*1000);
CommonConfigurationExamples.cs: change weak reference collection interval
Dim configuration As IEmbeddedConfiguration = Db4oEmbedded.NewConfiguration()
configuration.Common.WeakReferenceCollectionInterval = (10 * 1000)
CommonConfigurationExamples.vb: change weak reference collection interval