Fwd: What happen when an object is indexed in several collection?

Chris Muller asqueaker at gmail.com
Fri Apr 6 02:03:11 UTC 2007


Yes.  If you change any attributes that will affect its index-hash
calculations in any of the indexes, you must:

  mySession noteOldKeysFor: theObjectAboutToBeUpdated

*before* (not after) you update the object.  By "update" I don't mean
the commit, I mean the actual changing of the instance variables which
affect its index hash calculations.  This will cause the MagmaSession
to note the old keys for that object so it can then be moved to the
new keys upon the next commit.

 - Chris

On 4/5/07, Hilaire Fernandes <hilaire2006 at laposte.net> wrote:
> Is it safe to update an object indexed in several collection ?
>
> Hilaire
>
> _______________________________________________
> Magma mailing list
> Magma at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/magma
>


More information about the Magma mailing list