==Name Index==
The name index contains all element and attribute names of a database, and the fixed-size index ids are stored in the main database table. If a database is updated, new names are automatically added. AdditionallyFurthermore, the index is enriched with statistical information, such as the distinct (categorical) or minimum and maximum values of its elements and attributes. The maximum number of categories to store per name can be changed via [[Options#MAXCATS|MAXCATS]]. Currently, The statistics are discarded after database updatesand can be recreated with the [[Commands#OPTIMIZE|OPTIMIZE]] command.
The name index is e.g. applied to pre-evaluate location steps that will never yield results:
==Path Index==
The path index (also called ''path summary'') stores all distinct paths of the documents in the database. It also contains additional the same statistical information. Currently, as the name index will get out-of-dated . The statistics are discarded after new database updatesand can be recreated with the [[Commands#OPTIMIZE|OPTIMIZE]] command.
The path index is applied to rewrite descendant steps to multiple child steps. Child steps can be evaluated faster, as less nodes have to be accessed: