A computer system for the indexing of data in which a heuristic determination
function
is applied to predict an efficient index updating approach. The system is able
to update an index relating to a first data set by incrementally updating the index
or by a rebuild of the index at the completion of the addition of a second set
of data to the first set of data. The system applies a heuristic determination
function to the characteristics of the first set of data, its index, and the second
set of data, to predict whether an incremental update or a rebuild update of the
index will result in a more efficient rebuild of the data. The system applies this
approach to a restore and rollforward recovery or a data load operation to improve
the efficiency of these operations.