I’m reading a web service that returns a JSON, parse and write into a SQLite Database in Android. The process is very slow because I have to do each insertion separately.
I do this process in background
Is there a way to improve this process?
Thank you!!!
You should do batch inserts.
Pseudocode:
That increased the speed of inserts extremely.
If it doesn’t work check out this post about faster insertions