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

Add client-side SQL option to PostgreSQL TPROC-C #699

Open
shrimpy56 opened this issue Apr 24, 2024 · 2 comments
Open

Add client-side SQL option to PostgreSQL TPROC-C #699

shrimpy56 opened this issue Apr 24, 2024 · 2 comments
Labels
database Database specific enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@shrimpy56
Copy link

shrimpy56 commented Apr 24, 2024

Is your feature request related to a problem? Please describe.
It is glad to see that MySQL/MariaDB now can enable client-side SQL execution without stored procedure. We want to use the feature on PostgreSQL.

Describe the solution you'd like
This would be a similar change as MySQL/MariaDB. Please correct me if I am wrong. Is there any specific reason that PostgreSQL was not in the scope of the feature?

Describe alternatives you've considered
N/A

Additional context
N/A

@sm-shaw
Copy link
Contributor

sm-shaw commented Apr 25, 2024

It's great to see interest in this feature and a good background to why this was added for MySQL/MariaDB is explained here:
https://www.hammerdb.com/blog/uncategorized/why-you-should-benchmark-your-database-using-stored-procedures/

Essentially, there was a community discussion around client SQL vs stored procedures for MySQL/MariaDB (this has not been the case for commercial databases) and therefore this feature enables comparison and shows definitively that stored procedures are faster than client SQL. Of course looking at the official full disclosure reports on https://www.tpc.org/ shows that this is how the commercial databases have always been benchmarked (and stored procedures will be faster than client SQL for PostgreSQL as well).

Nevertheless, this feature is also very useful when we want to test accelerating networking features such as encryption or compression, as this is the way we can ensure higher levels of network traffic.

Also, some (not all) derived open source databases especially distributed ones may not support stored procedures with the trade-off of being distributed by having lower performance and therefore this could be useful for derived PostgreSQL databases as well in this scenario.

Therefore, this is a perfect opportunity for a community contribution to add this feature. If you wish to work on this, there is a template here for what was added for MySQL/MariaDB https://github.com/TPC-Council/HammerDB/pull/602/commits

@sm-shaw sm-shaw added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers database Database specific labels Apr 25, 2024
@shrimpy56
Copy link
Author

Hi Steve, thanks for pointing me the background of the feature!

I totally agree with the value of it and I am currently working on it, taking the template as a reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database Database specific enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants