Skip to content

Efficiently retrieve many small changing elements #2154

Answered by dfahlander
tobiasBora asked this question in Q&A
Discussion options

You must be logged in to vote

I would suggest to do one query per cell component or possibly by row. If one cell is updated, only that query will rerun. But if you have one large query, it would rerun when any cell changes.

You could combine it with a query in parent component doing

db.cells.where("tab").equals(tabID)).primaryKeys()

to find which cells that exists (don't know if that makes sense in your case though)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tobiasBora
Comment options

Answer selected by tobiasBora
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants