[Q] changing keySize:

Chris Muller chris at funkyobjects.org
Mon Apr 17 18:33:20 UTC 2006


> Sorry for bother you with these elementary questions.

No bother!

> I am playing with differentes keySizes in indexes, but everytime I
> change the keySize of an index and rebuild the database Squeak hungs
> (or it takes too much time to do the task).

#keySize: is an 'initializing' method.  You cannot change the keySize
of an index, but you may remove the old index and create a new index
with a different keySize.

> I'm saveving only 200 objects in a one single entry with two indexes.

By "one single entry with two indexes" do you mean, one single
MagmaCollection with two indexes?

> The first time I save them, its very fast, but when I begin playing
> with differents keySizes, Squeak loops.

How are you "playing with different key sizes?  Its true that larger
keys are significantly slower than smaller keys, but I don't think its
looping endlessly..

> Normally I close the session (a single user sesssion) and reopen it,
> before to rebuild the database and the indexes, but I have tried even
> deleting the db files and recreate them. I thought its must be
> something about references that remains in my image, so I try to find
> how to perform a garbageCollect of Magma. I found a comment in
> MagmaCompressor that says "yourRepositoryController garbageColllect".
> But this object does not understand #garbageCollect, nor any other
> magma object.

To "rebuild the database" I presume you mean to load it from some
source?  If so, this advice will help you go faster:

  http://minnow.cc.gatech.edu/squeak/2985

If you decide to keep going, I will help the best I can.

 - Chris


More information about the Magma mailing list