10.12.2012 Views

Oracle Spatial User's Guide and Reference - InfoLab

Oracle Spatial User's Guide and Reference - InfoLab

Oracle Spatial User's Guide and Reference - InfoLab

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SDO_TUNE.QUALITY_DEGRADATION<br />

Format<br />

Description<br />

Parameters<br />

Usage Notes<br />

SDO_TUNE.QUALITY_DEGRADATION(<br />

schemaname IN VARCHAR2,<br />

indexname IN VARCHAR2<br />

) RETURN NUMBER;<br />

SDO_TUNE.QUALITY_DEGRADATION<br />

Returns the quality degradation for an index or the average quality degradation for<br />

all index tables for an index.<br />

schemaname<br />

Name of the schema that contains the index specified in indexname.<br />

indexname<br />

Name of the spatial R-tree index.<br />

The quality degradation is a number indicating approximately how much longer it<br />

will take to execute the I/O operations of the index portion of any given query with<br />

the current index, compared to executing the I/O operations of the index portion of<br />

the same query when the index was created or most recently rebuilt. For example, if<br />

the I/O operations of the index portion of a typical query will probably take twice<br />

as much time as when the index was created or rebuilt, the quality degradation is 2.<br />

The exact degradation in overall query time is impossible to predict; however, a<br />

substantial quality degradation (2 or 3 or higher) can affect query performance<br />

significantly for large databases, such as those with millions of rows.<br />

Index names are available through the xxx_SDO_INDEX_INFO <strong>and</strong> xxx_SDO_<br />

INDEX_METADATA views, which are described in Section 2.5.1.<br />

For more information <strong>and</strong> guidelines relating to R-tree quality <strong>and</strong> its possible effect<br />

on query performance, see Section 1.7.2.<br />

<strong>Spatial</strong> Tuning Subprograms 18-11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!