Core Data - Transient getters called during save

  • I have a Transient data attribute that is part of my Core Data data
    model. It reads the data as needed and this works great. That is
    until it does a save. Then "Core Data" calls the getter method on
    this attribute for each added object to the data store. This process
    is slow and has no value seeing the the data does not live in the
    data store. It is also memory intensive. Part of the reason this
    attribute is Transient and its own entity is because it is a large
    peace of data. I wanted to minimize when it was loaded into memory.

    Why is the getter called for Transient  attributes during a save? Am
    I misunderstanding on how I should use Transient?

    thanks for the help.

    -dave
  • On Oct 9, 2006, at 5:57 PM, David Alter wrote:

    > Why is the getter called for Transient  attributes during a save?

    Transient attributes have validation rules (like persistent
    attributes). The values are validated before saving.

    Jim
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today