How transient relationship works in CoreData

When open a CoreData relationship in the Data Model inspector, it shows an option to set the relationship as transient. Apple Core Data Programming Guide havent explained how transient relationship works. Can you please explain, how transient relationship works?

There's not really anything to explain about transient relationships: the difference between a transient and a non-transient relationship is whether the values are persisted to storage.


Because the values aren't peristed, if you reset the context or otherwise fault the managed object, the value you have for the relationship will "disappear" and not be present the next time the entity is loaded.


Otherwise, the use case for a transient relationship is the same as for a transient attribute, the difference being whether the value in question is a pointer to an entity or just a value.

How transient relationship works in CoreData
 
 
Q