I'm learning android by doing my sample app. Service within app periodically saves phone's location to database. Default frequency depends on GPS provider, which sends new coordinates, when position is changed. So, if I'm travelling by car amount of locations during long trip could be vast. Problem that I'm facing now - what mechanism should I choose to write and read this data to db? The easiest one is ORM (ORMLite). And I think there would no problems to write to DB. What worries me - is reading data. Surfing stackoverfow, I've found problems connected with reading big amounts of data (thousands of rows) by means of ORMLite, which lead to up to few minutes delays. As for now I plan to load this location to build route and show it on map, for example. So, should I replace my ORMLite approach with something else and what would be this "something else"? Or it is possible to use ORM to write and something else to read data? Though I'd like to use some uniform approach to talk to DB within my app.
Thanks in advance!