babelfish_extensions icon indicating copy to clipboard operation
babelfish_extensions copied to clipboard

Jira babel 3755

Open ParikshitSarode opened this issue 2 years ago • 1 comments

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

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

ParikshitSarode avatar Oct 08 '23 10:10 ParikshitSarode

Update title and description

Deepesh125 avatar Oct 20 '23 12:10 Deepesh125