You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Split INSERT statements by byte size on export #2533
The SQL export batches by row count: 1, 100, 500 or 1,000. Row count is a poor stand-in for statement size. A table of wide rows blows past the server's max_allowed_packet at 500 rows, and a table of narrow ones wastes the round trips at the same setting.
Proposed solution
A byte-size limit beside the row count, defaulting to something under a common max_allowed_packet.
Close the statement at whichever limit is reached first.
Show the resulting largest statement size in the export summary, so the setting can be judged.
Activity
feat(plugins): close a SQL export INSERT at a byte size as well as a …
fix(plugins): keep a Stop from committing, and bound a batch by what …
fix(plugins): make the export subsystem's writes atomic, stoppable an…