01-26-2009 08:45 AM
I have a few projects up my sleve at present where, for example a geocaching app, which may not be able to contact a server if I'm out in a national park looking for a cache, however I want/need to be able to store potentially hundreds of locations on the phone and be able to link to photos on the phone's memory.
Some geocaching locations have been around a while and can be 20kB or 30kB in size each if all the user log data is stored too.
What is the best way to deal with such blobs of data, both long term storage, as well as being able to retrive and display the information the most efficiently?
01-26-2009 09:42 AM
I recommend to use FileConnections API and store your data in files.
Persistent Store is not good choice because you need to store hundreds objects and there is limited persistent object handles (it is device OS limitation). On some devices your application can cause errors in this case.You can group and ungroup objects but it will affect on performance.
Check the link below
01-27-2009 12:35 AM
If you wish to implement a hybrid solution - consider caching approach.
PersistentStore is fast cache, File system - is slow storage.
There are a lot of resources about cache management design pattern.
Try to google: design patterns cache management