SQL - REBUILD INDEXES
Rebuilds automatic indexes.
Syntax
REBUILD INDEX <index>
<index>Defines the index that you want to rebuild. Use*to rebuild all automatic indexes.
NOTE: During the rebuild, any idempotent queries made against the index, skip the index and perform sequential scans. This means that queries run slower during this operation. Non-idempotent commands, such as
INSERT,UPDATE, andDELETEare blocked waiting until the indexes are rebuilt.
Examples
Rebuild an index on the
nickproperty on the classProfile:orientdb>
REBUILD INDEX Profile.nickRebuild all indexes:
orientdb>
REBUILD INDEX *
For more information, see