-
Notifications
You must be signed in to change notification settings - Fork 105
Move SyncNotes loop to the db #1871
Copy link
Copy link
Open
Labels
storeRelated to the store componentRelated to the store component
Milestone
Description
Currently the Store component implements the sync_notes by making multiple select_notes_since_block_by_tag_and_sender queries while the payload limit is not exceeded. We should move the loop to the DB to return multiple matching blocks instead of just the first matching one, avoiding the queries overhead. Additionally, the method currently takes a list of account_ids that is not being used so could be removed.
Context: #1843 (comment) and #1843 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
storeRelated to the store componentRelated to the store component