Skip to content

feat: async dump jobs + streaming SQL dump export#97

Open
whynice724-cell wants to merge 1 commit intoouterbase:mainfrom
whynice724-cell:main
Open

feat: async dump jobs + streaming SQL dump export#97
whynice724-cell wants to merge 1 commit intoouterbase:mainfrom
whynice724-cell:main

Conversation

@whynice724-cell
Copy link

@whynice724-cell whynice724-cell commented Feb 26, 2026

Summary

  • convert /export/dump to stream SQL dump output in batches (reduced peak memory pressure)
  • add async dump job flow for large exports:
    • POST /export/dump to start job
    • GET /export/dump/jobs/:jobId for status/progress
    • GET /export/dump/jobs/:jobId/download for artifact download once completed
  • persist dump job/chunk state in internal SQLite temp tables for resumable progress
  • add/adjust tests for streaming and async dump jobs

Why

Fixes large-database dump reliability by avoiding single in-memory dump generation and providing a non-blocking job-based path for long-running exports.

Test

  • corepack pnpm test --run src/export/dump.test.ts src/export/dump-jobs.test.ts src/handler.test.ts

/claim #59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant