company logo

IndexDefinition :: large - LARGE option

The option marks an index as large index, which causes the database storing key values in a B*-tree rather than in a list. Usually, collection indexes are stored as list, which becomes rather inefficient in case of large collections. When more than 1000 entries are expected for a collection, the large option should be set.

Notes:

For later versions, this feature becomes obsolete, since the database recognizes when a list needs to turned into a tree. Nevertheless, this option can be specified in future as well in order to indicate, that the index should be created as large index from the beginning.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false.

Implementation details

bool IndexDefinition  :: large (  )

If the function is not called with a valid index definition it throws an exception.