ISystemInfo.

FreespaceSize() Method

Summary

returns the freespace size in the database in bytes.
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o.Ext
Containing Type
ISystemInfo

Syntax

long FreespaceSize()

Remarks

returns the freespace size in the database in bytes.

When db4o stores modified objects, it allocates a new slot for it. During commit the old slot is freed. Free slots are collected in the freespace manager, so they can be reused for other objects.

This method returns a sum of the size of all free slots in the database file.

To reclaim freespace run defragment.

Return Value

Type Description
long the freespace size in the database in bytes.