Patent ID: 7392266

Claim:
A computer-implemented method for monitoring usage of a plurality of components within a database index, each of the plurality of components corresponding to a column in a database table, the method comprising the steps of: (A) providing a plurality of fields in the database index, wherein the plurality of fields include: an indication of how one of the plurality of components have been used; a correlation of the plurality of components to a corresponding plurality of query identifiers to indicate each query that used a corresponding one of the plurality of components in the database index; a plurality of last used timestamps correlated to a corresponding plurality of query identifiers to indicate a timestamp for each query that used the database index; maintenance statistics that indicate which components in the database index were modified when the database index was modified; (B) monitoring usage of the plurality of components in the database index; (C) writing to the plurality of fields information regarding the usage of the plurality of components in the database index; (D) using the information in the database index regarding the usage of the plurality of components in the database index to determine when to discard the database index; and (E) using the information in the database index regarding the usage of the plurality of components in the database index to determine when to create a new database index.