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
Add a server-side spool so the /check download path can page a window's
chunk stream one chunk per call, instead of having the network driver
(libpq / sqlitecloud-go) re-materialize the whole stream into memory.
- cloudsync_payload_spool table + cloudsync_payload_spool_fill/_drop on
both engines (SQLite C, lazy-create; PG plpgsql, table created at
install). fill generates a window's chunks once (idempotent, atomic),
marks the last chunk is_final, and self-GCs abandoned streams (24h TTL).
- cloudsync_network_check_internal echoes a best-effort page cursor
to/from /check so the stateless server serves the next spool page;
retrocompatible (optional response field, sent in every request).
- Tests: do_test_payload_spool (SQLite) and a spool block in
52_payload_chunks.sql (PG) covering byte-identity vs direct generation,
idempotent re-fill, empty window, drop, and stale-GC.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments