title: Populate a tableView with Core Data images
body: <p>I'm developing a messaging app (something like WhatsApp), users can send text and image messages to one another.  </p>
  
  <p>I created a <code>Message</code> object, subclass of <code>NSManagedObject</code>, to store a message details like:<br>
  sender_name, timestemp, message_text and message_image (for image messages)<br>
  * the average size of an image is like the size of an image taken from the iPhone camera roll library.</p>
  
  <p>First questions is:<br>
  <strong>Is it a good idea to save the images to Core Data or will it be better to save them to the file system?</strong>  </p>
  
  <p>The problem is, when I'm in the chat view and I'm scrolling the tableView to see old messages, the scrolling performance get really bad when there are images to load from core data.  </p>
  
  <p>I'm using a <code>NSFetchedResultsController</code> to fetch the messages, and I'm fetching no more then 30 at once. I tried to improve the performance by creating a <code>MessageImage</code> object, also subclass of <code>NSManagedObject</code>, to store the <code>UIImage</code>.<br>
  A <code>Message</code> object has one-to-one relationship with <code>MessageImage</code>, I did this so when the fetcher loads 30 messages from Core Data, the UIImage itself won't be loaded until requested. But still I get bad performance...</p>
  
  <p>So Second questions is:<br>
  <strong>What can I do to improve the scrolling performance ?</strong></p>