![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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! |
#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
| |||
| |||
|
|
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! |
#5
| |||
| |||
|
|
At the earliest possible moment. |
#6
| |||
| |||
|
|
At the earliest possible moment. Could that be directly inside the access method that fetches individual rows from the page in the buffer? Or is the projection always performed at some point *after* the initial fetch of the relevant row(s)? |
#7
| |||
| |||
|
|
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! |
#8
| |||
| |||
|
|
so I think you can assume that the copy from the buffered block extracts only the columns needed from the row. |
#9
| |||
| |||
|
|
jbdhl wrote: 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! What problem are you trying to solve, given the fact that you've been asking this very same question in groups/forums for 3 different DBMS's: comp.databases.oracle.server comp.databases.ibm-db2http://www.eggheadcafe.com/software/aspnet/35820528/when-are-projecti... (MSSQL-forum) |
#10
| |||
| |||
|
|
Obviously, he wants to know the mechanics of how each engine does this fundamental task. |
![]() |
| Thread Tools | |
| Display Modes | |
| |