title: Transaction speed vs. Query speed
body: <p>What is faster, one transaction with many queries or for every query a separate transaction?</p>
  
  <p>One transaction with many queries:</p>
  
  <pre><code> db.transaction(function (tx){
        tx.executeSql('INSERT INTO TEST VALUES ("Halo1" ,"Halo2")', [], win, fail);        
        tx.executeSql('INSERT INTO TEST VALUES ("Halo3" ,"Halo4")', [], win, fail);
        tx.executeSql('INSERT INTO TEST VALUES ("Halo5" ,"Halo6")', [], win, fail);
        .
        .
        .
        .
     });
  </code></pre>
  
  <p>One transaction per query:</p>
  
  <pre><code>    db.transaction(function(tx){
          tx.executeSql('INSERT INTO TEST VALUES ("Halo1" ,"Halo2")', [], win, fail);
  
      });
  
      db.transaction(function(tx){
          tx.executeSql('INSERT INTO TEST VALUES ("Halo3" ,"Halo4")', [], win, fail);
  
      });
      and so on.....
  </code></pre>
  
  <p>I need this info, because i have to insert many records in one table.</p>