Super Projections vs Query Specific Projections
Hi guys,
I have one doubt.. if we create a query specific projection which has all columns in the base table and has same syntax of its super projection. By default which projection, vertica optimizer chooses for execution.
I mean there is no difference in Projection SQL between Super and Specific projection.
I know we can avoid super projection using SET_OPTIMIZER_DIRECTIVES('AvoidUsingProjections=').
please let me know the working of the optimizer in such case.
Thanks,
Achar
0
Comments
Hi,
If the SELECT part of a projections has all of the column in a table, it is considered a super projection. A query specific projection will typically have an ORDER BY clause that includes the source query's WHERE clause predicates and JOIN columns.
If the projections are exactly the same, Vertica will chose the one create first.
Example: