iphone - using coredata for storing / caching non standard data types -


i'm rearching best ways store non standard types (string, int16 etc) on iphone. doing downloading xml file , storing values such date, title, name, mediaurl. i've discovered coredata data model , believe candidate storing such data don't have download xml next time app starts.

what i'm unsure of limitations (if any) of can store in entity. example 1 of xml elements hold url small piece of audio (less 1mb) , url image. appropriate store audio data , image attribute in entity or should kept strings , ints etc , non standard types stored else where?

i guess i'm asking is, datamodel suitable caching?

ultimately i'm seeking solution storing data on device in location not tied 1 view, kinda atomic model need can dip no matter view i'm in.

the data model suitable caching, because don't have explicit control of cache (you can fault data object may remain in memory), it's recommended separate large binary objects. store them resources on filesystem, , manage links (urls or paths) in core data.

< 1mb file seems okay handled core data, depends how many of them application uses.

also if store large files in core data, should use sqlite storage.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -