title: Is there any faster way to iterate through rows from Sqlite query?
body: <p>I am using the following lines for looping on rows of a Sqlite query.</p>
  
  <pre><code>this.open(); // opening db
  Cursor cursor = db.rawQuery(strQuery, null);
  
  cursor.moveToFirst();
  do {    
  
      // do something    
  
  } while (cursor.moveToNext());
  
  cursor.close();
  </code></pre>
  
  <p>When the number of rows is about 15000 it takes long time. <strong>It takes about 4 seconds for empty <code>while</code> block</strong> and about 6 second for <code>while</code> block that has some codes. It shows that iterating on rows in this way is time consuming.</p>
  
  <p>Is there any faster way for looping on rows in android and Sqlite?</p>
  
  <p>Thanks,</p>