Skip to content

Conversation

@bwanswa
Copy link

@bwanswa bwanswa commented Jan 23, 2026

Exporting large tables currently causes a browser crash/hang because the entire result set is loaded into memory as a single array and joined into a massive string.

Changes
Modified exportTableData in src/lib/export-helper.ts to use a while loop with LIMIT and OFFSET.

Data is now fetched and processed in batches of 2,000 rows.

Verified driver compatibility using the internal escapeId method.

Impact
This resolves the memory exhaustion issue for large database exports (Issue #59), allowing for stable exports regardless of table size.

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.

1 participant