I have made couple of apps using coredata and I was storing images in sqlite, but somewhere i found that it is bad. I've searched the net but all I've found is this suggestion:
- image size < 100kb store in the same table as the relevant data
- image size < 1mb store in a separate table attached via a relationship to avoid loading unnecessarily
- image size > 1mb store on disk and reference it inside of Core Data
So my question is: what are pros and cons of saving an image in sqlite db as NSData
, and storing just a reference to the image while image is saved in the file system?