Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What if insted sending entire dictionary, every entity will be streamed #126

Open
dzintars opened this issue Sep 1, 2020 · 0 comments
Open

Comments

@dzintars
Copy link
Owner

dzintars commented Sep 1, 2020

Now we have {entities:{"1":{}}} reprezentation of collection and we are sending it over the wire in its entirity. But what if every Entity will be streamed separately. Lets say we have an table in UI. When user renders the table we know the first viewport row position which typicaly will be 0. We know the size of the wiewport and so we know that we can load at least 40 rows/Entities. So we start to stream entities from 0 to 40 position. And they get rendered as they arrives (costly to rerender UI components for every state update?). In the background we can stream one more set of Entities so if user starts to scroll, data is already there. We maintain viewport 0 position row Entity id to know which records we should stream up and down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant