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

How to handle large batches without blocking the UI #19

Open
brodycj opened this issue May 4, 2012 · 1 comment
Open

How to handle large batches without blocking the UI #19

brodycj opened this issue May 4, 2012 · 1 comment

Comments

@brodycj
Copy link
Member

brodycj commented May 4, 2012

I saw some reports that the UI will be blocked when large batches of data are being loaded into the database. This problem cannot be solved properly without introducing worker threads. The workaround is to setup a timer mechanism that saves the data in small pieces and reports by callback when it is done.

A solution by using either a timer mechanism or worker threads can be done equally well in the user code, outside the SQLitePlugin Javascript code.

@brodycj
Copy link
Member Author

brodycj commented May 4, 2012

For batches of smaller records it is possible to solve this issue with a timer. If there are really large record sizes then the work would have to be done in another thread. I do not promise when or even if I will make the solution.

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

No branches or pull requests

1 participant