I have been doing some experiments to measure sqlite performance on android. I was disappointed a little bit with the results. What i did was inserting 10.000 queries to ta
Well, you have so many records and for every record you call getWritableDatabase()
and then insert it, which is bad for performance.
You need to use transactions. Look at this question Android SQLite database: slow insertion. Basically you need to call beginTransaction()
, do your insertions and then call setTransactionSuccessful()
preceded by endTransaction()
. You will be amazed to see how much performance gain you will get with this.