[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

returns the freespace size in the database in bytes.

Namespace: Db4objects.Db4o.Ext
Assembly:   Db4objects.Db4o (in Db4objects.Db4o.dll)

Syntax

Visual Basic (Declaration)
Function FreespaceSize As Long
C#
long FreespaceSize ()
Visual C++
long long FreespaceSize ()

Return Value

the freespace size in the database in bytes.

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.