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
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@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@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/magma
magma@lists.squeakfoundation.org