Skip to content

perf(postgresql,mysql): limit SQL result memory usage - #188

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/184-sql-result-capping-memory-spike
Jun 16, 2026
Merged

perf(postgresql,mysql): limit SQL result memory usage#188
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/184-sql-result-capping-memory-spike

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #184

Limits memory usage in database workspaces:
- PostgreSQL: appends a LIMIT clause to SELECT/WITH/VALUES statements dynamically when executed to prevent loading millions of rows.
- MySQL: uses  to stream query rows and stops/cancels early once the cap is reached.

@ZhuchkaTriplesix ZhuchkaTriplesix left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

123

@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 96bb952 into dev Jun 16, 2026
4 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/184-sql-result-capping-memory-spike branch June 19, 2026 03:33
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Jun 20, 2026
ZhuchkaTriplesix added a commit that referenced this pull request Jul 27, 2026
…emory-spike

perf(postgresql,mysql): limit SQL result memory usage
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.

Performance: Post-Fetch SQL Result Capping Memory Spike Risk (PostgreSQL / MySQL)

1 participant