title: What is faster - a Cursor or ArrayList?
body: <p>I have an SQLite database which I have to be constantly retrieving data from. Changes may be done to the data between each retrieval.</p>
  
  <p>My goal is to maximize the app performance, so what is the fastest way to do this retrieving?</p>
  
  <p>I can imagine 2:</p>
  
  <ul>
  <li><p>constantly opening and closing new cursors</p></li>
  <li><p>query all data at the beginning and store it in an ArrayList. When changing the data, change both SQLite DB and the ArrayList using <code>indexOf</code>.</p></li>
  </ul>
  
  <p>---- EDITED ----</p>
  
  <p>I need the data to create markers in a google's map.</p>
  
  <p>I have considered using CursorLoader but as I don't need to interact whith other apps I don't want to use Content Providers.</p>
  
  <p>Would creating a custom loader be a good idea?</p>