You are here: Configuration > Class Specific Configuration > Disable Class Index

Disable Class Index

By default there's a index which indexes all instances of a certain type. When you never query this type and only access it by navigation, you can safely disable this index.

IEmbeddedConfiguration configuration = Db4oEmbedded.NewConfiguration();
configuration.Common.ObjectClass(typeof (Person)).Indexed(false);
ObjectConfigurationExamples.cs: Disable class index
Dim configuration As IEmbeddedConfiguration = Db4oEmbedded.NewConfiguration()
configuration.Common.ObjectClass(GetType(Person)).Indexed(False)
ObjectConfigurationExamples.vb: Disable class index