![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Consider a table and a query referring to only a subset of the columns in that table. How early in the query evaluation is the projection carried out? Are the columns to be selected filtered out as early as in the very access method that reads the table rows from the buffer, or are the projection handled later, after the whole row has been fetched by the access method? Does it depend on the complexity of the query, how far down the three that the projection is handled out? Thanks! |
#4
| |||
| |||
|
|
But in practice the query optimizer may move steps up ro down the execution plan to find efficient way to retrieve data. One example is using covering index for the query where no unnecessary data access will be incurred. |
#5
| |||
| |||
|
|
Will the projection ever happen directly in the access method that fetch rows from the buffer? Or will it always be done at some point after the initial fetch? |
#6
| |||
| |||
|
|
Consider a table and a query referring to only a subset of the columns in that table. How early in the query evaluation is the projection carried out? Are the columns to be selected filtered out as early as in the very access method that reads the table rows from the buffer, or are the projection handled later, after the whole row has been fetched by the access method? Does it depend on the complexity of the query, how far down the three that the projection is handled out? Thanks! |
![]() |
| Thread Tools | |
| Display Modes | |
| |