title: How come to insert row with sqlite.JDBC with ubuntu it takes longer time than OSX?
body: <p><br>
  I wrote simple java program that read data from file ".xls" and store those into local database sqlite.
  I've been having some problems about the time it takes to store those data by Ubuntu 12.04 and Mac OSX.
  I've verified these operations (inserting rows) takes much longer with Ubuntu (around 15 minutes) than Mac OSX (around 32 seconds).<br>
  May someone help me to figure out the problem ? <br><br>
  Here below I've attached my code.
  PS: I'm sorry for my english.</p>
  
  <p>Main.java</p>
  
  <pre><code>public static void main(String[] args) 
      throws IOException, BiffException, ClassNotFoundException, SQLException, WriteException {
  
      Main obj = new Main();
  
      if(!Database.access().exists()) {
          Database.access().connect("Proteomic.db");
          System.out.println("Uploading data from workSheets to database...");            
          obj.storeSheets("/Users/.../Desktop/File nurr1 vs ctrl-1"+".xls");
      }
      ...
  </code></pre>
  
  <p>method storeSheets</p>
  
  <pre><code>    public void storeSheets(String path) throws IOException, BiffException, SQLException
      {
      Workbook workbook = Workbook.getWorkbook(new File(path));
      String intestazione = new String();
  
      number_sheets = workbook.getNumberOfSheets();
  
      for(int k=0;k&lt;number_sheets;k++)
      {
          Sheet sheet = workbook.getSheet(k);
          String s_name = sheet.getName();
  
          int numeroRighe = sheet.getRows();
          int numeroColonne = sheet.getColumns();           
  
          ...
          ...
  
          Database.access().createTable(s_name); 
  
          for(int i=1;i&lt;numeroRighe;i++) {
              cond=false; //condizione necessaria per non inserire righe parzialmente vuote
              for(int j = 0; j &lt;= numeroColonne; j++)  {
                  ...
                  ...
              }
              //query per l'inserimento
              if(cond==true) {
                  val.add("NULL");
                  Database.access().insertRow(s_name,val); //insert operation
                  val.clear();
              }
          }
      }
  }
  </code></pre>
  
  <p>Class Database.java</p>
  
  <pre><code>public class Database {
  
  ...
  ...
  //other attributes and methods
  
  public void insertRow(String name,ArrayList&lt;String&gt; vv) throws SQLException {
  
      Statement stat=(Statement) con.createStatement();
      String str1="INSERT INTO "+name+" "+"VALUES(";
  
      for(int i=0;i&lt;vv.size();i++) {
          if(i==vv.size()-1)
              str1+=vv.get(i);
          else
              str1+=vv.get(i)+",";
      }
      str1+=")";
  
      stat.executeUpdate(str1);
  }
  </code></pre>
  
  <p>Thank you all to help me.</p>