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

turns indexing on or off.

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

Syntax

Visual Basic (Declaration)
Sub Indexed ( _
	flag As Boolean _
)
C#
void Indexed (
	bool flag
)
Visual C++
void Indexed (
	bool flag
)

Parameters

flag
System.Boolean
specify
 Copy imageCopy Code
true
or
 Copy imageCopy Code
false
to turn indexing on for this field

Remarks

turns indexing on or off.

Field indices dramatically improve query performance but they may considerably reduce storage and update performance.
The best benchmark whether or not an index on a field achieves the desired result is the completed application - with a data load that is typical for it's use.

This configuration setting is only checked when the Db4objects.Db4o.IObjectContainer is opened. If the setting is set to
 Copy imageCopy Code
true
and an index does not exist, the index will be created. If the setting is set to
 Copy imageCopy Code
false
and an index does exist the index will be dropped.