IObjectClass.

Indexed(bool) Method

Summary

turns the class index on or off.
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o.Config
Containing Type
IObjectClass

Syntax

void Indexed(bool flag)

Remarks

turns the class index on or off.

db4o maintains an index for each class to be able to deliver all instances of a class in a query. If the class index is never needed, it can be turned off with this method to improve the performance to create and delete objects of a class.

Common cases where a class index is not needed:
- The application always works with sub classes or super classes.
- There are convenient field indexes that will always find instances of a class.
- The application always works with IDs.

In client-server environment this setting should be used on both client and server.

This setting can be applied to an open object container.

Parameters

Name Type Description
flag bool

Return Value

Type Description
void