Summary
tuning feature only: reserves a number of bytes in database files.
- Assembly
- Db4objects
.Db4o-2010 .dll - Namespace
- Db4objects
.Db4o .Config - Containing Type
- IFileConfiguration
Syntax
long ReserveStorageSpace { set; }
Remarks
tuning feature only: reserves a number of bytes in database files.
The global setting is used for the creation of new database files.
Without this setting, storage space will be allocated continuously as required. However, allocation of a fixed number of bytes at one time makes it more likely that the database will be stored in one chunk on the mass storage. Less read/write head movement can result in improved performance.
Note:
Allocated space will be lost on abnormal termination of the database engine (hardware crash, VM crash). A Defragment run will recover the lost space. For the best possible performance, this method should be called before the Defragment run to configure the allocation of storage space to be slightly greater than the anticipated database file size.
Default configuration: 0
The global setting is used for the creation of new database files.
Without this setting, storage space will be allocated continuously as required. However, allocation of a fixed number of bytes at one time makes it more likely that the database will be stored in one chunk on the mass storage. Less read/write head movement can result in improved performance.
Note:
Allocated space will be lost on abnormal termination of the database engine (hardware crash, VM crash). A Defragment run will recover the lost space. For the best possible performance, this method should be called before the Defragment run to configure the allocation of storage space to be slightly greater than the anticipated database file size.
Default configuration: 0
Value
Type | Description |
---|---|
long | the number of bytes to reserve |