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

feat: use a simple select for flat queries #324

Merged
merged 3 commits into from
Nov 2, 2023
Merged

Conversation

BobdenOs
Copy link
Contributor

Details

Without this change every query is wrapped inside a DO BEGIN which allows for multiple queries to be executed, but this comes with a bit of an overhead. So now flat queries (without expands) are now done as a SELECT directly.

Additionally the _json_ column is returned as an NVARCHAR as the HANA network protocol for NCLOB requires additional FETCH calls which cause a dramatic overal request response time.

@johannes-vogel
Copy link
Contributor

@BobdenOs Is there something you want to do within this PR or should we merge?

@johannes-vogel johannes-vogel merged commit a788a77 into main Nov 2, 2023
@johannes-vogel johannes-vogel deleted the hana-faster-select branch November 2, 2023 15:20
@cap-bots cap-bots mentioned this pull request Dec 5, 2023
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.

2 participants