ios - Using Core Data with many images per entity? -


i'm new core data , i'm working on first personal ios app.

i have entity, lets call car, has thumbail gallery of other images associated it. data synced online service using asihttprequest , jsonkit. app doesn't need create new car's, display them.

the thumbnail around 100kb may store blob data within car entity.

however i'm not sure how should store other multiple images?

the images around 800kb 1mb each using storing them in core data store doesn't seem recommended.

the options can think of are:

  • store url of each photo within entity carimage , rely on asihttprequest's cache.
  • create folder structure , save each image it's corresponding car's folder , keep references file path in carimage entity

because data synced, there potential car's deleted, images in folders have deleted well. can see getting out of hand pretty quickly.

i appreciate advice. thanks.

i'd take first option.

regarding images have deleted: isn't taken care of automatically asihttprequest's cache, once expire? @ least that's i'd expect cache...


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -