a-type / verdant

🌿 Storage, sync & realtime for local-first web apps. Build an app in minutes, deploy as a static page, and add sync with a few lines.
https://verdant.dev
GNU Affero General Public License v3.0
188 stars 4 forks source link

Break up sync responses #405

Open a-type opened 2 months ago

a-type commented 2 months ago

When resyncing a whole library, it's kind of a lot. Batching responses by some reasonable number of operations / baselines would probably be warranted. A theresMore kind of flag could tell the client to keep waiting.

a-type commented 1 month ago

NOTE: when doing this, the sync layer should merge all responses before passing back to client. The client is not designed for multiple sync responses, particularly because of old version handling with #413