Clustering spatial data on the disk
If the rows of a table with an R-tree index are clustered
on disk the same way as the corresponding entries in the R-tree index
that indexes the column, the performance of the retrieval of the data
is improved. This section describes how you can cluster existing spatial
data on the disk to reflect the ordering in the R-tree index.
Important: Because the following procedure requires that the
data in the original table be temporarily deleted, make a backup copy
of the table either by loading all the rows into a new table or by
taking a full backup of the database.
To cluster existing spatial data on the disk to reflect the ordering in an R-tree index:
If your original table is fragmented, be sure to use the same fragmentation scheme throughout the procedure. In other words, fragment the new table and its index the same way the original table and index are fragmented and make sure that the data is re-inserted into the correct fragment of the original table.
Subsequent updates will gradually degrade the clustering of data achieved with this procedure.