I am having issues with sqlite inserts performance even with transactions. My Android app has approximately 23,000 rows from a web service, and I need to paste them into a single table.
The web service is partitioned so that I get about 2,000 rows in each WS request and wrap the 2000 inserts in the transaction. After these insertions are completed, I submit a new request to WS and again use the new transaction for new 2000 lines.
It works great in the beginning. He makes a lot of investments per second. but over time, it becomes slower and finally ends with 4 or 3 inserts per second until it completes 23,000 lines.
Is there a problem with the size of the table? When it gets bigger, do inserts get slower? Is there a way to improve performance for this large amount of data?
Thanks for your help.
source share