-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Increase default request rate #160
Comments
+1, I think the value of pg_net.batch_size is far less than 200. |
@begank Try show pg_net.batch_size; |
do we have a way to have in our migration file the set of batch_size ? |
@riderx Looks like your migration tool is using libpq pipeline mode, which is incompatible with some SQL statements (COPY being another one). For now, you could use another migration tool as a workaround. Once #163 is done we won't require ALTER SYSTEM anymore. |
I use the one in supabase CLI, so I don’t know exactly witch one it is but i believe your team does :) |
Problem
The current request rate of 200 req/s (
pg_net.batch_size
) is too low for several cases. It's limited this way to save on CPU usage, but this can be improved.For example, right now the
net._http_response
tables store the response headers as jsonb. For this, processing is needed on each request/response to convert the headers to jsonb, which consumes CPU.Solution
Store the response headers as binary and then provide a view that converts them to json on demand. This can be done without a breaking change. Then increase the default request rate.
Notes
The text was updated successfully, but these errors were encountered: