[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
tuning feature: configures the minimum size of free space slots in the database file
that are to be reused.
Namespace: Db4objects.Db4o.Config
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
Syntax
Visual Basic (Declaration) |
---|
Sub DiscardFreeSpace ( _ byteCount As Integer _ ) |
C# |
---|
void DiscardFreeSpace ( int byteCount ) |
Visual C++ |
---|
void DiscardFreeSpace ( int byteCount ) |
Parameters
- byteCount
- System.Int32
Slots with this size or smaller will be lost.
Remarks
tuning feature: configures the minimum size of free space slots in the database file
that are to be reused.
When objects are updated or deleted, the space previously occupied in the database file is marked as "free", so it can be reused. db4o maintains two lists in RAM, sorted by address and by size. Adjacent entries are merged. After a large number of updates or deletes have been executed, the lists can become large, causing RAM consumption and performance loss for maintenance. With this method you can specify an upper bound for the byte slot size to discard.
Pass
to this method to discard all free slots for
the best possible startup time.
The downside of setting this value: Database files will necessarily grow faster.
Default value:
all space is reused
When objects are updated or deleted, the space previously occupied in the database file is marked as "free", so it can be reused. db4o maintains two lists in RAM, sorted by address and by size. Adjacent entries are merged. After a large number of updates or deletes have been executed, the lists can become large, causing RAM consumption and performance loss for maintenance. With this method you can specify an upper bound for the byte slot size to discard.
Pass
![]() | |
---|---|
Integer.MAX_VALUE |
The downside of setting this value: Database files will necessarily grow faster.
Default value:
![]() | |
---|---|
0 |