You can estimate the size of an R-tree index in pages by performing a series of calculations based on the number of rows in the table.
The following procedure estimates only the number of leaf pages in the R-tree index; it does not calculate the number of branch pages. This is because almost all of the space in an R-tree index is usually taken up by leaf pages, due to the wide shape of the tree. Therefore, calculating the number of leaf pages is usually adequate for a rough estimate of the total number of disk pages that make up the R-tree index.
Entries of this size appear in index leaf pages.
If you are indexing a user-defined data type, the size of the key value is the value of the INTERNALLENGTH variable of the CREATE OPAQUE TYPE statement.
leafentrysize = colsize + 16 bytes
oncheck -pr
leafpagents = trunc ( pagefree / leafentrysize ) * 60%
where
pagefree = pagesize - 88
The value leafpagents is multiplied by 60 percent because index leaf pages are usually just over half full.
The trunc() function notation indicates you should round down to the nearest integer value.
leaves = rows / leafpagents
Use the SQL statement SELECT COUNT(*) FROM table to calculate the number of rows in the table.
The number of leaf pages that make up the R-tree index is close to the total number of disk pages that make up the index.