Grooper Help - Version 25.0
25.0.0023 2,165
  • Overview
  • Help Status

Root - Rebuild Indexes

Root Command Grooper

Rebuilds database indexes for selected tables in the Grooper repository.

Remarks

The Rebuild Indexes command is used to restore or optimize the performance of the Grooper repository database by rebuilding indexes on one or more tables. Indexes can become fragmented over time due to data modifications, which may degrade query performance. Running this command helps ensure that database operations remain efficient, especially after large data imports, deletions, or other maintenance activities.

This command is typically executed by administrators as part of regular system maintenance or in response to performance issues. It can be configured to target specific tables and index types, providing flexibility for both broad and targeted optimization.

Usage

  • Select the tables to include using the 'Table Names' property, or leave blank to rebuild indexes on all tables.
  • Choose the scope of indexes to rebuild using the 'Rebuild Scope' property (e.g., all, primary, secondary, or GUID-based).
  • Set the 'Timeout' property to control how long each rebuild operation may run before timing out.
  • Execute the command to begin the rebuild process. Progress and actions are logged for review.

The command will generate and execute the appropriate SQL ALTER INDEX ... REBUILD; statements for each selected table and index, according to the specified scope. Each operation is tracked and logged, allowing administrators to monitor progress and review any issues.

When to Use

  • After large data imports, deletions, or batch processing that may fragment indexes.
  • As part of scheduled maintenance to maintain optimal database performance.
  • When experiencing slow query performance or database-related bottlenecks.

Diagnostics and Logging

  • Each executed SQL command is logged for auditing and troubleshooting.
  • Progress is displayed and updated as each index is rebuilt.
  • Any errors encountered during execution are recorded in the event log.

Best Practices

  • Schedule index rebuilds during maintenance windows or periods of low activity to minimize impact on users.
  • Use targeted rebuilds for large tables or specific index types to reduce downtime.
  • Monitor logs and review progress to ensure all intended indexes are rebuilt successfully.

Properties

NameTypeDescription

See Also

Notification