java - How to load huge data into array list or any other data structure? -


i have 5000 10000 records in sqlite database , load memory (arraylist/hashmap etc). data structure suitable load huge amounts of data , access in android.

in order access 1000's of records randomly , in android use hashmap allow constant time access of data, in addition can use additional data structure objects create indexes. example, if you're data stored in hashmap<int, passenger> data , need sort passengers surname can use sqlite create list of passenger id's , access data loaded data object. if ordering not important index can still use arraylist, hashset if you're index id's needs guaranteed unique.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -