开发者

Does the NSManagedObject instance still float around in space when it turns into a fault?

开发者 https://www.devze.com 2023-01-02 19:29 出处:网络
Or is turning into a fault the same as deleting that thing completely? I mean... is that guy then just still alive as a super lightwei开发者_如何学JAVAght object with no big data inside, or is it actu

Or is turning into a fault the same as deleting that thing completely? I mean... is that guy then just still alive as a super lightwei开发者_如何学JAVAght object with no big data inside, or is it actually deleted?

Or: Is a fault an object in memory with low footprint, or is that a "virtual object that COULD be there, but isn't yet"?


No, definitely it's not the same thing as deleting the object. Moreover, there is no guarantee that it will be flushed back to the filesystem nor there is a guarantee that it will be removed from the cache. For instance, assuming the object has no changes, nothing needs to be written on the filesystem, and there is a chance that, instead, it will remain in cache.

0

精彩评论

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