Storing large list of clients in android
<p>I am attempting to parse a server xml response into an intermediate state before i write the info to an ormlite database. The data i have is essentially a list of objects with fields such as firstname, lastname, etc. Since memory is limited in android, what is the best way to assemble this list of objects from my parsed data? Should i perhaps construct a list of objects? or would that quickly use up too much memory (i would need on the scale of a couple hundred as the xml has about that much clients). Or would it be better to have an array of dictionaries for each client with the fields stored as key value pairs? Once i have this intermediate state, i would need to compare against my current db values to make sure the fetched data is not already in the db and then replace the db objects if the fetched data is new. What is the best way to accomplish this?</p>
