Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-06-2012, 12:01 PM   #1 (permalink)
Registered Member
 
Join Date: Feb 2012
Posts: 1
jrad11 is on a distinguished road
Default Help With Core Data

Hello All,

I am receiving data from a REST service that I would like to save in Core Data for my iOS app. I get this data from multiple calls to the REST service, so I would like to assemble this data completely in memory before saving the data to the data store.

My question is about NSFetchRequest. It seems like this object searches the persistent storage for a child object I am looking for. Is this true? If so, what is the best way for my to find my child object in memory before it has been saved to persistent storage?

Thanks,
JR
jrad11 is offline   Reply With Quote
Old 02-06-2012, 01:34 PM   #2 (permalink)
Token farm animal
 
sneaky's Avatar
 
Join Date: Apr 2011
Posts: 321
sneaky is on a distinguished road
Default

When you fetch you are querying a context - assuming that you are only using one single nsmanagedcontext you will be querying memory as well as disk.

You don't actually want to do too much saving just to memory, will get slow after a while. If you are looping make sure to commit every 50 new nsmanagedobjects or so.
sneaky is offline   Reply With Quote
Reply

Bookmarks

Tags
coredata

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 402
17 members and 385 guests
Alex-alex, Apptronics RBC, dre, FrankWeller, gwelmarten, ipodphone, jeroenkeij, jleannex55, LunarMoon, MAMN84, n00b, pbart, reficul, Retouchable, Sami Gh, usernametaken, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,125
Posts: 402,910
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:17 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0