[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
turns the class index 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
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 subclasses or superclasses.
- There are convenient field indexes that will always find instances of a class.
- The application always works with IDs.
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 subclasses or superclasses.
- There are convenient field indexes that will always find instances of a class.
- The application always works with IDs.