Prev | Current Page 244 | Next

Rick Greenwald, Robert Stackowiak, Jonathan Stern

"Oracle Essentials: Oracle Database 11g"

When a SQL query is submitted to an Oracle
database, Oracle must decide how to access the data. The process of making this
decision is called query optimization, because Oracle looks for the optimal way to
retrieve the data. This retrieval is known as the execution path. The trick behind
query optimization is to choose the most efficient way to get the data, since there
may be many different options available.
For instance, even with a query that involves only a single table, Oracle can take
either of these approaches:
??? Use an index to find the ROWIDs of the requested rows and then retrieve those
rows from the table.
??? Scan the table to find and retrieve the rows; this is referred to as a full table scan.
Although it??™s usually much faster to retrieve data using an index, the process of getting
the values from the index involves an additional I/O step in processing the
query. Query optimization may be as simple as determining whether the query
involves selection conditions that can be imposed on values in the index.


Pages:
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256
wierszyki bajka Tango Olsztyn pozycjonowanie typy bukmacherskie