electric icon indicating copy to clipboard operation
electric copied to clipboard

How would electric handle cases with large amounts of data and lazy loading?

Open nodkrot opened this issue 1 year ago • 2 comments

For example if im building a large kanban board? At which point will client suffer? What strategies are there for these scenarios?

nodkrot avatar Nov 19 '24 09:11 nodkrot

See https://github.com/electric-sql/pglite/pull/393 for an example of a project management app with a lot of data. Electric will handle syncing GBs of data no problem. You need to look at what you sync into and then there are a lot of different optimisation techniques in the client, depending on how you need to query the data. The example I link to uses a windowed query optimisation to make the reactivity fast.

thruflo avatar Nov 19 '24 09:11 thruflo

Thank you for getting back, will check it out. Simple question I have is how can electric sync engine store gigabytes of data on the client to keep things in sync (I would imagine browsers have limits)? If you can point me to resources that explain this I would greatly appreciate it!

nodkrot avatar Nov 21 '24 10:11 nodkrot