babelfish_extensions
babelfish_extensions copied to clipboard
Jira babel 3755
Description
Improve performance of "simple expressions" in pltsql
- An optimisation on the Postgres engine was done that reduced the query time execution for simple queries. Simple queries are the queries that do not refer to a relation (say, "x + 1" or "x > 0")
- A similar optimisation is adopted for babelfish.
- After doing the optimisations, an improvement of around 11% is noticed in simple queries.
Issues Resolved
Performance of simple queries is improved by 11%
Test Scenarios Covered
Currently few tests are failing as the error messages changed. Ex: -~~ERROR (Message: Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 1, current count = 0.)~~ +~~ERROR (Message: Transaction count after execution indicates a mismatch number of BEGIN and COMMIT statements. Previous count 1 current count 0)~~
Check List
- [x] Commits are signed per the DCO using --signoff
By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Update title and description