I need to parse a fairly large XML file (varying between about a hundred kilobytes and several hundred kilobytes), which I\'m doing using Xml#parse(String, ContentHand
You should do batch inserts.
Pseudocode:
db.beginTransaction();
for (entry : listOfEntries) {
db.insert(entry);
}
db.setTransactionSuccessful();
db.endTransaction();
That increased the speed of inserts in my apps extremely.
Update:
@Yuku provided a very interesting blog post: Android using inserthelper for faster insertions into sqlite database