-
Notifications
You must be signed in to change notification settings - Fork 377
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
UI stuck when selecting a lot of data with watch() #3360
Comments
Do you know how many rows are returned by the query? The setup looks correct to me, but if it returns a large number of rows (say more than a couple thousand), or these rows have lots of columns, it's possible that there is a slowdown. We'll run the queries on background isolates, but results are interpreted on the main isolate. By the way, the stopwatch is not to helpful here because it will also measure time spent on the background isolate (which should not cause UI lag). Using a profiler on the main isolate to measure the time spent in drift is a better indicator of where this issue is coming from. |
Hi! |
@simolus3 |
Yes, you can apply a Just running the query in batches wouldn't reduce the actual load since all rows would still be reloaded when any of them changes. |
@simolus3 |
Hi!
I have this query which takes several second to run. But my UI lagging while query is running. Is there way to avoid it?
Here is connection to database.
And here is query. Even I just listen for Stream without data processing - it is still lagging. Also I tried to hide rows mapping and it didn't help.
The text was updated successfully, but these errors were encountered: