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

Pool IDB connections to reduce main thread activity #38

Open
TimvdLippe opened this issue Nov 28, 2018 · 0 comments
Open

Pool IDB connections to reduce main thread activity #38

TimvdLippe opened this issue Nov 28, 2018 · 0 comments
Assignees

Comments

@TimvdLippe
Copy link
Contributor

We are currently opening a new IDB connection for every actor. Even with a couple of actors, this generates quite a strain on the main thread.

Rather than having a connection per actor, we should have 1 connection per realm. We already create 1 store per realm, so the fix would be to create a list of actors that are interested in updates. Then we debounce the actual IDB connection, iterate through the rows and then call each interested actor. This should significantly reduce the amount of time spent waiting on IDB.

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