company logo

Recreate extent from instances

In order to repair extents with damaged indexes, one may also call Database::recreateExtent(). This function may be called for typed and owning extents (root extents), only. All indexes for the collection will be removed. Then, indexes are recreated by searching the database for instances of data type defined by the extent.

Notes:

The function will not work properly, when more than one root extent have been created for instances of the same type (e.g. MalePersons and FemalePersons of type Person).