Comments on: NSIncrementalStore – The future of web services in iOS / Mac OS X /code/nsincrementalstore-the-future-of-web-services-in-ios-mac-os-x/ sealed abstract class drew {} Sun, 27 Mar 2016 22:51:38 +0000 hourly 1 https://wordpress.org/?v=4.4.15 By: Jamie Hardt /code/nsincrementalstore-the-future-of-web-services-in-ios-mac-os-x/comment-page-1/#comment-17905 Sat, 24 May 2014 19:14:02 +0000 /?p=1251#comment-17905 “The danger of not using a system library like CoreData is that you will wake up one day and discover that you have cloned it”

Amen. I recently did a little media database app because I was convinced a custom schema and indexes would make searches faster. By the time I had it working I’d succeeded in writing half-assed versions of NSPersistentStore and NSManagedObjectContext, NSPredicate (complete with formatted text parser!), NSFetchRequest, NSManagedObject and I’d begun the great quest of rewriting CD’s migration infrastructure.

And I’m really not sure it runs that fast.

]]>
By: Adrian /code/nsincrementalstore-the-future-of-web-services-in-ios-mac-os-x/comment-page-1/#comment-10841 Fri, 30 Aug 2013 17:46:55 +0000 /?p=1251#comment-10841 The back-end is dead. Long live the front-end. ™

That’s my tm’d manta. Have you ever worked with a SysAdmin in the past 10 years. Me neither! That’s because AWS, Rackspace, Azure and others have replaced the need to ‘own’ machines. (I hated those otherwise useless guys that knew a handful of terminal commands.)
The ongoing switch now is to toward a higher level or service, or a complete data storage rather than a raw machine, a la Parse, Stackmob and so forth. Now that gets rid of your back-end developer.
Good new and bad news. Good news: Why rewrite the effectively the same damn backend over and over again. Bad news: You get rid of a whack of seasoned developers and your firm is run by script-kiddies.
On an end note, I find Core Data to be utterly awesome while EJB killed Java.

]]>
By: NSIncrementalStore - Using local and remote data | BlogoSfera /code/nsincrementalstore-the-future-of-web-services-in-ios-mac-os-x/comment-page-1/#comment-9375 Fri, 26 Jul 2013 12:02:35 +0000 /?p=1251#comment-9375 […] few articles about NSIncrementalStore and I’m still confused about the whole concept. In this post we can read […]

]]>
By: Binary App Dev: Apps | NSIncrementalStore – Using local and remote data /code/nsincrementalstore-the-future-of-web-services-in-ios-mac-os-x/comment-page-1/#comment-9201 Tue, 23 Jul 2013 14:58:56 +0000 /?p=1251#comment-9201 […] few articles about NSIncrementalStore and I’m still confused about the whole concept. In this post we can read […]

]]>
By: Drew Crawford /code/nsincrementalstore-the-future-of-web-services-in-ios-mac-os-x/comment-page-1/#comment-7645 Sun, 22 Jul 2012 02:52:17 +0000 /?p=1251#comment-7645 @Daniel,

You’re right, I really need to document CDH better. It’s in the “saves me time” stage, but not yet in the “recommended for third-party reliance” stage of the lifecycle. Working on it.

From CoreData’s point of view, the reference object is like a “key” that identifies an object. When a fetch request comes in, and you want to serve 50 objects, you create (or re-use) 50 reference objects (which can be any NSCopying-compatible object), wrap them up in NSManagedObjectIDs, and serve them up. When it comes time to save the object, you are told the NSManagedObjectIDs and you extract your original reference object, and in this way you know specifically what object(s) the user saves (or deletes).

The naive thing to do here is (assuming you are talking to a remote database) is just to use its foreign key as a reference object, because that’s probably what the remote machine wants to process any update, save, delete, etc.

The additional complexity in CDH comes because I am interested in supporting more aggressive caching scenarios (such as batched writes) in which you might not know, at the time that you “save” the object, what the foreign key actually is. I also see a more general problem: that of tracking objects not merely between one server and one client database, but in multiple stores on the client side and potentially on multiple servers, which makes building powerful software out of reusable building blocks easier, and CDH uses multiple databases internally already, which is much easier to debug. So I am using “uniqueID” in CDH to mean a unique identifier that is independent of the particular database in which an object is stored, and this is something that can really only be provided by the application because remote servers might dictate their own identifiers.

]]>
By: Daniel Thorpe /code/nsincrementalstore-the-future-of-web-services-in-ios-mac-os-x/comment-page-1/#comment-7644 Sat, 21 Jul 2012 19:58:21 +0000 /?p=1251#comment-7644 @Drew – Hi Drew, great post. I’m also trying to figure out how to implement obtainPermanentIDsForObject:error:

You advised @Quinn to look at https://github.com/drewcrawford/CoreDataHelp/blob/master/CoreDataHelp/DCACacheIncrementalStore.m#L91 to see how. And I’m just hoping you can elaborate on what’s happening there. You have a protocol, which defines a method uniqueID, however, there is no implementation of this method in the code. So… can you explain what the reasoning here is?

]]>
By: Amos Elmaliah /code/nsincrementalstore-the-future-of-web-services-in-ios-mac-os-x/comment-page-1/#comment-7643 Fri, 20 Jul 2012 15:12:53 +0000 /?p=1251#comment-7643 Defiantly a very good idea to start playing with the NSIncrementalStore.
Mattt, Thanks a lot for putting that project up!

]]>
By: Michael Tsai - Blog - AFIncrementalStore /code/nsincrementalstore-the-future-of-web-services-in-ios-mac-os-x/comment-page-1/#comment-7634 Sat, 14 Jul 2012 21:42:32 +0000 /?p=1251#comment-7634 […] are needed. I had noticed NSIncrementalStore in the iOS 5 docs a while ago, but it was this article that got me to realize how unbelievably cool it […]

]]>
By: Mattt Thompson /code/nsincrementalstore-the-future-of-web-services-in-ios-mac-os-x/comment-page-1/#comment-7632 Fri, 13 Jul 2012 18:52:08 +0000 /?p=1251#comment-7632 Thank you kindly for getting us all so excited about NSIncrementalStore.

Perhaps you’d find my latest project to be close to what you were imagining: https://github.com/AFNetworking/AFIncrementalStore

]]>
By: Michael Tsai - Blog - You Should Use Core Data /code/nsincrementalstore-the-future-of-web-services-in-ios-mac-os-x/comment-page-1/#comment-7616 Sat, 07 Jul 2012 20:35:24 +0000 /?p=1251#comment-7616 […] He also has an interesting post about using NSIncrementalStore with Web services. […]

]]>