To populate my database, I have some loops like that:
for (int i=0;i<something;++i){
myDatabase.insert(...);
}
But when I run it, it takes a too long time. So I'd like to know how to improve the runtime? I'd try to make a only one call to insert like that:
String queries="";
for (int i=0;i<something;++i){
queries += "my query;";
}
myDatabse.execSQL(queries);
But the execSQL function insert only the first query, not others. So how can I do?