Closed manmorjim closed 3 years ago
What happens when the user that has the streaming mode
disabled sends a query for a table of 10GB?
What happens when the user that has the
streaming mode
disabled sends a query for a table of 10GB?
That's a good point! We should establish a quota limit for those cases where the streaming_mode
is disabled. This limit could be defined in the config such as db_max_row_size
.
what happens when the available memory is less than the threshold or even the memory needed to handle that query?.
Closing since these changes are not going to be used
:warning: This PR has to be merged and deployed before merging this.
Changes
Reading the field
streaming_mode
from db parameters of redis which indicates the operation mode for the SQL API. Iftrue
(default) then the SQL API streams the results (default behaviour). If this field is set tofalse
the the SQL API will return all the results at once.More info in CH: https://app.clubhouse.io/cartoteam/story/106733/turn-sql-api-transactional-and-improve-the-error-handling