Skip to content

Return multiple blocks for SyncNotes #1809

@Mirko-von-Leipzig

Description

@Mirko-von-Leipzig

SyncNotes gRPC endpoint currently returns notes from the next applicable block only. This means that syncing notes can take many requests.

Change the endpoint to return as many blocks worth of notes as possible, i.e. a Vec of the current response, while staying within the ~4MB payload limit.

This could be changed at the RPC component only, where it internally does multiple trips to the store until the batch is full. However, I would prefer if we perform this work on the store side and minimize the gRPC trips involved. This also keeps the RPC and store gRPC method definitions aligned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    rpcRelated to the RPC componentstoreRelated to the store component

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions