Iam new to developing HTML5 applications. In this I want to insert 1000\'s of records into sqlite database using HTML5. This process is very slow. How to use BEGIN/COMMIT be
You already have the code to place your 1000 inserts inside a single transaction. For some reason it is commented out. Remove the comments and you are done!
db.transaction(function(tx){tx.executeSql("BEGIN",[]);});
for(var i=0;i<1000;i++)
{
txquer(i,"test");
}
db.transaction(function(tx){tx.executeSql("COMMIT",[]);});