-
Notifications
You must be signed in to change notification settings - Fork 18
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
Using Transaction for large Data ~15k entries #36
Comments
Moved code to pass through AsyncTask to stop UI freezing (worked), however, the below,
still persists.. |
|
@bennith can you create a simple project that reproduces your problem, and share it on GitHub? |
Please see sample project which uses transaction to add data (which still fails), but turning off transactions data is added (getting counts of 15K rows) Change Please see ORMHelpers file and the method |
I will check it out soon. Unfortunately, I have a lot of work to do now. |
Maybe it is due to missing the How you can use database transaction in Android
If so, can we add this to the documentation transactions |
Confirmed, It is due to the missing line code |
@bennith Good job! I will add new API for working with transactions in the new version. |
Current Version: com.reactiveandroid:reactiveandroid:1.4.3
I have, on launch a scenario of comparing local string & server side string, and on false, I run an update to my DB which has data pulled from API (~15k items) in which I pass this data to public static helper to do DB updates on the tables;
Problem is when I use begin/end transaction in this method(), even though the save() passes true, nothing gets actually added or updated (get count of 0), but if I remove the begin/end transaction everything gets updated/created in the DB as i should (get count of ~15k) but is very slow and not ideal at all;
Also both types freeze the UI indefinitely until task completed;
The text was updated successfully, but these errors were encountered: