Skip to content

Commit

Permalink
TEIID-5530 adding a doc note about aggressive inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed Nov 27, 2018
1 parent 7646f38 commit a9efcf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reference/WITH_Clause.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ common table.

NOTE: The WITH clause is also subject to optimization and it’s entries may not be processed if they are not needed in the subsequent query.

NOTE: Common tables are aggressively inlined to enhance the possibility of pushdown. If a common table is only referenced a single time in the main query it will likely be inlined. In some situations, such as when using a common table to prevent n-many processing of a non-pushdown correlated subquery, you may need to include the no_inline or materialize hint.

Examples:

[source,sql]
Expand Down

0 comments on commit a9efcf5

Please sign in to comment.