Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8298769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:54:16+00:00 2026-06-08T15:54:16+00:00

I planning on building an app whose main content are images. Basically, it is

  • 0

I planning on building an app whose main content are images. Basically, it is going to have multiple menus using UITableViews, whose cells are going to have only an image. When you click the cell, you’ll be pushed to a simple view with that image and another one, wich has the rest of the detailed content.

This is all quite easy to do, my questions is about optimization. It’s gonna have LOTs of content (Maybe 1k rows) and It’s gonna display images in the UITableView, so Core Data is a must (given it’s lazy loading and several other optimizations)

My question is: What’s best, to store the image in the Core Data db (as NSData) or to just store the name of the image? What I’m imagining is if I store the name of the resource, For each row in the UITableView the device must go fetch that image, process it finally display it. When scrolling trough them (wich is expected to happen A LOT) we would have lots of fetching images. If I store them in Core Data, it would be as simple as taking that info and using it as if it where an image.

The benefits of storing the images in Core Data comes with the normal withdraws of storing blobs in a db. I don’t know how much of a problem this would be in Core Data (My experience in dbs comes mainly from MySQL)

On the other hand, tough my “common sense” dictates saving just the name and fetching the images as they’re needed its gonna take more time if they’re requested more, I’m not sure how much of a performance hit would this be. Is there a “best way” to store them? Just the name and then call pathForResourse:ofType:or (if it’s faster) pathForResourse:ofType:inDirectory: on the mainBundle, store the URI, or other form of pointing to it.

edit: The application will have static content shipped with the application and the user won’t be able to modify this content in any way. (at least in version 1.0)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T15:54:20+00:00Added an answer on June 8, 2026 at 3:54 pm

    From the Core Data Release Notes for iOS v5.0:

    Small data values like image thumbnails may be efficiently stored in a database, but large photos or other media are best handled directly by the file system. You can now specify that the value of a managed object attribute may be stored as an external record—see setAllowsExternalBinaryDataStorage:. When enabled, Core Data heuristically decides on a per-value basis if it should save the data directly in the database or store a URI to a separate file which it manages for you. You cannot query based on the contents of a binary data property if you use this option.

    The setAllowsExternalBinaryDataStorage: essentially does what you described “…just store the name of the image…”

    Also refer to these other questions:

    1. CoreData : store images to DB or not?
    2. Core data images from desktop to iphone
    3. Provide example for why it is not advisable to store images in CoreData?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is a list of problems I have after building my app with xcode
I'm planning on writing an app and building against 2.2 Froyo (API Level 8).
I'm planning on building all the major platforms using PhoneGap. I know iPhone has
I'm currently in the planning phase of building a scheduling web app (for volunteer
I'm planning on building an application that simplifies web design. I intent using Lazarus/FreePascal
I am building a standard asp.net LOB application. i am planning to have some
I'm building an app using Phonegap and I'm using Urban Airship for iOS and
I am building an application and I am planning on using OpenSSL for securing
I'm planning on building a Django log-viewing app with powerful filters. I'd like to
I'm planning on building a page with multiple tabs (up to 4) within it,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.