Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jira babel 3755 #238

Open
wants to merge 8 commits into
base: BABEL_3_X_DEV__PG_15_X
Choose a base branch
from

Conversation

ParikshitSarode
Copy link
Contributor

@ParikshitSarode ParikshitSarode commented Oct 16, 2023

Description

Improve performance of "simple expressions" in pltsql

  1. 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")
  2. A similar optimisation is adopted for babelfish.
  3. 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

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant