Are there any plans to further develop GPORCA to support all query performance optimizations? #729
-
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:
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 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @KrasnovidKE There are two ways: 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. |
Beta Was this translation helpful? Give feedback.
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.