You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by "KrasnovidKE (via GitHub)" <gi...@apache.org> on 2024/11/25 14:36:55 UTC

[D] Are there any plans to further develop GPORCA to support all query performance optimizations? [cloudberry]

GitHub user KrasnovidKE created a discussion: Are there any plans to further develop GPORCA to support all query performance optimizations?

The query performance optimizations listed below (taken from the documentation at https://cloudberry.apache.org/docs/performance/) work exclusively for the Postgres query optimizer AKA Legacy Optimizer:
- Parallel Queries Execution
- Aggregation pushdown
- IndexScan on AO Tables
- RuntimeFilter

However, this legacy optimizer produces extremely complex and generally poor plans for large queries compared to GPORCA.

So is it planned to improve GPORCA or maybe there are plans to somehow improve Legacy optimizer?

In short, the question can be generalized to a request to disclose plans for the future of both optimizers


GitHub link: https://github.com/apache/cloudberry/discussions/729

----
This is an automatically sent email for commits@cloudberry.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@cloudberry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org


Re: [D] Are there any plans to further develop GPORCA to support all query performance optimizations? [cloudberry]

Posted by "my-ship-it (via GitHub)" <gi...@apache.org>.
GitHub user my-ship-it added a comment to the discussion: Are there any plans to further develop GPORCA to support all query performance optimizations?

Hi @KrasnovidKE
In fact, we plan to enable those features you mentioned in GPORCA in our roadmap. In the long term, we plan to narrow the difference between GPORCA and Legacy optimizer, so that there is no need for users to be torn about which optimizer to choose.

There are two ways:
The first is to cherry pick GPORCA's special features back to Legacy planner, and contribute those features to PostgreSQL, and maintain one planner finally, but it would take time for PostgreSQL community to accept those changes. Comparing benchmark(TPC-H/TPC-DS) results based on Legacy planner and GPORCA is the guideline for us to do the work.

Another approach is, enabling features that comes from PostgreSQL kernel upgrading in GPORCA. For example, clean up FIXMEs in GPORCA, enable incremental sort, and etc.

GitHub link: https://github.com/apache/cloudberry/discussions/729#discussioncomment-11379383

----
This is an automatically sent email for dev@cloudberry.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@cloudberry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: dev-help@cloudberry.apache.org


Re: [D] Are there any plans to further develop GPORCA to support all query performance optimizations? [cloudberry]

Posted by "avamingli (via GitHub)" <gi...@apache.org>.
GitHub user avamingli added a comment to the discussion: Are there any plans to further develop GPORCA to support all query performance optimizations?


> However, this legacy optimizer produces extremely complex and generally poor plans for large queries compared to GPORCA.

Max and I previously discussed a related topic and plan to enhance our AQUMV feature to support complex SQL queries. Specifically, we aim to ensure that all examples from TPC-DS can utilize the AQUMV functionality. 
This will greatly address the efficiency issues related to complex queries, especially in cases like those in TPC-DS.

Additionally, we intend to support two different optimizers so that users can quickly obtain query results regardless of which one they choose to use.

This is a complex and long-term task, and it is already on my list of plans.

GitHub link: https://github.com/apache/cloudberry/discussions/729#discussioncomment-11379885

----
This is an automatically sent email for dev@cloudberry.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@cloudberry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: dev-help@cloudberry.apache.org


Re: [D] Are there any plans to further develop GPORCA to support all query performance optimizations? [cloudberry]

Posted by "KrasnovidKE (via GitHub)" <gi...@apache.org>.
GitHub user KrasnovidKE added a comment to the discussion: Are there any plans to further develop GPORCA to support all query performance optimizations?

Hi @avamingli @my-ship-it 

Great news! :)

Thank you for your detailed answers.

GitHub link: https://github.com/apache/cloudberry/discussions/729#discussioncomment-11380815

----
This is an automatically sent email for dev@cloudberry.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@cloudberry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: dev-help@cloudberry.apache.org


Re: [D] Are there any plans to further develop GPORCA to support all query performance optimizations? [cloudberry]

Posted by "KrasnovidKE (via GitHub)" <gi...@apache.org>.
GitHub user KrasnovidKE closed a discussion: Are there any plans to further develop GPORCA to support all query performance optimizations?

The query performance optimizations listed below (taken from the documentation at https://cloudberry.apache.org/docs/performance/) work exclusively for the Postgres query optimizer AKA Legacy Optimizer:
- Parallel Queries Execution
- Aggregation pushdown
- IndexScan on AO Tables
- RuntimeFilter

However, this legacy optimizer produces extremely complex and generally poor plans for large queries compared to GPORCA.

So is it planned to improve GPORCA or maybe there are plans to somehow improve Legacy optimizer?

In short, the question can be generalized to a request to disclose plans for the future of both optimizers


GitHub link: https://github.com/apache/cloudberry/discussions/729

----
This is an automatically sent email for dev@cloudberry.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@cloudberry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: dev-help@cloudberry.apache.org