Skip to main content

Rebuild Indexes (Data Management Tools)

Summary

Rebuilds existing attribute or spatial indexes in an enterprise geodatabase. Indexes can also be rebuilt on states and state_lineage geodatabase system tables and the delta tables of datasets that are registered to participate in traditional versioning. Out-of-date indexes can lead to poor query performance.

Usage

  • Data must be from a database or an enterprise geodatabase. This tool does not work with file geodatabases.

  • After data loading, deleting, updating, and compressing operations, it is important to rebuild indexes.

  • This tool rebuilds the attribute and spatial indexes of base tables, delta tables, and archive tables in versioned and archive-enabled geodatabases.

  • The Include System Tables parameter determines if indexes are rebuilt on the states and state lineages tables in the specified geodatabase. When the option is unselected, the indexes on these tables are not rebuilt. If the Include System Tables parameter is unchecked, at least one dataset needs to be selected in the Datasets to Rebuild Indexes For to run the tool.

  • This tool is not supported with SAP HANA.

  • This tool cannot be used to rebuild full-text indexes.

Parameters

Label Explanation Data type

Input Database Connection

The connection (.sde file) to the database or geodatabase that contains the data for which you want to rebuild indexes.

Workspace

Include System Tables

Specifies whether indexes will be rebuilt on the states and state lineages tables.

Note:

You must connect as the geodatabase administrator in the connection file you specified for the Input Database Connection parameter value.

This option only applies to geodatabases. This option is ignored if you connect to a database.

  • CheckedIndexes will be rebuilt on the states and state lineages tables.

  • UncheckedIndexes will not be rebuilt on the states and state lineages table. This is the default.

Boolean

Datasets to Rebuild Indexes For

(Optional)

Names of the datasets that will have their indexes rebuilt. Only datasets that are owned by the connected user are displayed.

String

Rebuild Delta Tables Only

(Optional)

Specifies how the indexes will be rebuilt on the selected datasets. This parameter has no effect when the Datasets to Rebuild Indexes For parameter value is unspecified.

This option only applies to geodatabases. If the input workspace is a database, this parameter will be ignored.

  • CheckedIndexes will only be rebuilt for the delta tables of the selected datasets. This option can be used for cases where the business tables for the selected datasets are not updated often and there is a high volume of edits in the delta tables. This is the default.

  • UncheckedIndexes will be rebuilt on all indexes for the selected datasets. This includes spatial indexes as well as user-created attribute indexes and any geodatabase-maintained indexes for the dataset.

Boolean

Derived output

Label Explanation Data type

Updated Workspace

The updated workspace.

Workspace

Environments

Current Workspace

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes