Summary
sets the storage data blocksize for new ObjectContainers.
- Assembly
- Db4objects
.Db4o-2010 .dll - Namespace
- Db4objects
.Db4o .Config - Containing Type
- IConfiguration
Syntax
void BlockSize(int bytes)
Remarks
sets the storage data blocksize for new ObjectContainers.
The standard setting is 1 allowing for a maximum database file size of 2GB. This value can be increased to allow larger database files, although some space will be lost to padding because the size of some stored objects will not be an exact multiple of the block size. A recommended setting for large database files is 8, since internal pointers have this length.
This setting is only effective when the database is first created, in client-server environment in most cases it means that the setting should be used on the server side.
The standard setting is 1 allowing for a maximum database file size of 2GB. This value can be increased to allow larger database files, although some space will be lost to padding because the size of some stored objects will not be an exact multiple of the block size. A recommended setting for large database files is 8, since internal pointers have this length.
This setting is only effective when the database is first created, in client-server environment in most cases it means that the setting should be used on the server side.
Parameters
Name | Type | Description |
---|---|---|
bytes | int | the size in bytes from 1 to 127 |
Return Value
Type | Description |
---|---|
void |