-
Notifications
You must be signed in to change notification settings - Fork 418
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
Extend Request/Response limit in sql-over-http to 32MiB #8984
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Orca Security Scan Summary
Status | Check | Issues by priority | |
---|---|---|---|
Passed | Infrastructure as Code | 0 0 0 0 | View in Orca |
Passed | Secrets | 0 0 0 0 | View in Orca |
Passed | Vulnerabilities | 0 0 0 0 | View in Orca |
3857 tests run: 3743 passed, 0 failed, 114 skipped (full report)Code coverage* (full report)
* collected from Rust tests only The comment gets automatically updated with the latest test results
abb6af7 at 2024-09-12T10:48:07.273Z :recycle: |
My thinking around 32MiB is that it could be an incremental step towards 64MiB (maybe even beyond). You could monitor this change for a period of time and when you are confident that it hasn't had an adverse effect on the system then we can bump it even more. Ideally this limit gets as large as we can make it while still protecting the system. |
abb6af7
to
0c7d2e0
Compare
@conradludgate any feedback for this PR? Who would be the right person to review it? |
I will consider this, I'm not 100% sure just yet. Is it possible that you could use the webhooks API for these large queries? I expect the large number of TCP packets needing to be acknowledged would dwarf the extra roundtrips for the websocket startup cost. |
It is not possible for us to switch to websocket for large queries as the queries are authored by our users (not us) so we don’t know before hand the size of result of the query. For what it's worth, here are the limits used by other DB providers who offer sql-over-http:
|
0c7d2e0
to
1c4e441
Compare
Looks like this PR has been superseded by #9029. |
Problem
Fixes: #8983
TLDR; We are hitting this limit in more than one app, each with real-world use-cases.
Summary of changes
This extends the limit from 10MiB to 32MiB (as a sanity check, Planet Scale's limit is currently 64MiB). I'm open to changing this to whatever you think makes the most sense.
Checklist before requesting a review
Checklist before merging