citusdata / citus_docs

Documentation for Citus. Distributed PostgreSQL as an extension.
Creative Commons Attribution 4.0 International
58 stars 59 forks source link

Subquery pushdown changes in 6.2 #368

Open onderkalaci opened 7 years ago

onderkalaci commented 7 years ago

Why are we implementing it? (sales eng)

What are the typical use cases?

Communication goals (e.g. detailed howto vs orientation)

Good locations for content in docs structure

I think this should go into a separate section in the Docs. But, we should probably check with Sumedh and Ozgun.

How does this work? (devs)

Detailed list of requirements for subquery pushdown

Side Effect: Expanded View Support

Example sql

  1. Generic SQLs
  2. Subqueries in WHERE clause
  3. UNION/UNION ALL queries that are below a JOIN query
    • Just a private note here: These are equivalent of Heap's production queries with our regression test schema
  4. UNION/UNION ALL queries that are NOT below a JOIN query (i.e., Top Level Unions) -- See Corner cases below
  5. Expanded View Support

Corner cases, gotchas

UNIONs

Views

Limits

DISTINCT/DISTINCT ON

Are there relevant blog posts or outside documentation about the concept/feature?

Team meeting slides are here.

Link to relevant commits and regression tests if applicable

We had two PRs, main PR and the following PR. I already shared the related regression test files in Example sql section.

sumedhpathak commented 7 years ago

Removed 6.2 milestone. Will reevaluate in our upcoming release.