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
[P0][bug] generateBackup buffers entire dump in single string; large DBs OOM renderer #358
Backup/restore feature — generateBackup is the core function. Per docs/audits/backup.md F2.
Problem
src/lib/backup-generator.ts:62-79 returns Promise and accumulates every table's CREATE + every row's INSERT into a single parts: string[] array. Renderer writes this string in one IPC call via api.writeFileContents. For a 10M-row table this is ~1-3 GB of RAM held by the WebView before the save dialog opens. No streaming, no chunked file writes, no temp file with progressive append.
Activity
feat(backup): stream the dump and the restore, in the backend (#652)