Streaming export and import for large datasets
Exports millions of rows by pulling pages from the data source (including server-side sources) and writing chunks incrementally. Writing can happen in a Web Worker, with output to a file stream or chunked Blobs. Large file imports are parsed the same way, in chunks off the main thread with progress reporting. Memory use stays bounded and the UI stays responsive.
Planned. This page shows the specification from issue #200. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A server-backed (mocked) grid reporting 2,000,000 rows, plus a 200 MB synthetic CSV for import.
Expected behavior
Export proceeds in chunks with a smooth progress bar and a responsive UI (scrolling still works). The memory readout stays roughly flat, and cancelling stops fetching within one chunk.
Planned API surface
exportOptions.streamexportOptions.chunkSizeexportOptions.useWorkerexportOptions.fileHandledataSource.fetchRows() for exportimportOptions.streamexportProgress eventimportProgress eventAcceptance criteria
- Peak additional memory stays below a documented bound proportional to chunkSize, not to the total row count. (pending)
- No main-thread task exceeds 50 ms during a worker-based export. (pending)
- Streaming CSV and JSON Lines output is identical to non-streamed output for the same data. (pending)
- XLSX streaming writes shared strings inline or incrementally and respects the row limit. (pending)
- Cancellation stops data source requests and releases resources. (pending)
- A streaming import commits in batches, and validation reports are aggregated. (pending)