# Maintaining Indexes

Periodically (e.g. monthly) we recommend performing a database reorganisation of all the indexes on all the tables in your database. This will rebuild the indexes so that the data is no longer fragmented. Fragmented data can cause SQL Server to perform unnecessary data reads, slowing down SQL Server’s performance. It will also update column statistics.

Re-indexing can only be performed against one table at a time (note that this will lock the table out for the duration of the re-indexing so 24/7 operations should be aware of this).&#x20;

There are no specific re-indexing requirements for Keyfax although we recommend you consider re-indexing as part of your [Maintenance Plan](/technical/sql-server/maintenance-plan.md) .\
\
There are some useful re-indexing hints/tips [here](http://www.sql-server-performance.com/2007/rebuilding-indexes/).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.keyfax.biz/technical/sql-server/maintaining-indexes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
