Root object migration

Chris Muller asqueaker at gmail.com
Tue Feb 28 19:07:38 UTC 2012


You could do it in the same repository.

To replace the root of a repository:

    mySession commit: [ mySession root: newRootObject ]

MagmaWarning will be produced when you do this.

Then the next time you compress that repository, the big file
associated with the old PreallocatedDictionary will not be part of the
compressed output, as long as it is no longer referenced.

HTH,
  Chris


On Tue, Feb 28, 2012 at 11:31 AM, Brian Tabone <brian_tabone at yahoo.com> wrote:
> I originally set up my Magma repository to use the
> MagmaPreAllocatedDictionary and now I want to switch to the MagmaDictionary
> (I'm on Magma 1.3). I want to do this primarily so I can iterate easily over
> the keys. Is there a tried and true way to migrate your objects from one
> root to another? Should I set up another repository with a MagmaDictionary
> as root and iterate over known keys from the old repository and insert and
> commit them against the new repository?
>
> Thanks in advance,
> Brian Tabone
>
> _______________________________________________
> Magma mailing list
> Magma at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/magma
>


More information about the Magma mailing list