开发者

Binary Data in sqlite database versus Image in Applications Folder or Storing images from internet

开发者 https://www.devze.com 2023-03-10 08:20 出处:网络
I was just thinking what is the best way to keep images in IPhone/iPad (XCODE) application if I\'m getting them from internet dynamically. My main concern is if I\'m storing it in my database as Binar

I was just thinking what is the best way to keep images in IPhone/iPad (XCODE) application if I'm getting them from internet dynamically. My main concern is if I'm storing it in my database as Binary开发者_JAVA技巧 data, will it decrease my efficiency when creating the queries to database?

In that case is it better to store them in Application's folder?

Thanks for responds.


Apple dev forums has some good discussion on this. A good post can be found here. General guideline from the post: less than 16kb data blob ok, 100k ok as well, approaching 1MB and it is better to store outside of Core Data or any database.

In terms of fetching performance, it will boil down to how you have normalized your data model.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号