Skip to content

Conversation

@gruuya
Copy link
Contributor

@gruuya gruuya commented May 31, 2023

This is so as to avoid accumulating the entire result in memory and potentially OOM-ing the process. Closes #258

Example, using a large table to perform SELECT * ... LIMIT 100000:

  • W/O streaming memory peaks at 220MB (current main)
    slika

  • W/ streaming memory peaks at 30MB (this PR)
    slika

@gruuya gruuya requested a review from mildbyte May 31, 2023 10:37
@gruuya gruuya merged commit 30ce4af into main May 31, 2023
@gruuya gruuya deleted the stream-json-results branch May 31, 2023 12:15
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.

Prevent full table scans that result in OOM

3 participants