Question: How to rebuild indexes?

Chris Muller asqueaker at gmail.com
Tue Apr 21 02:09:51 UTC 2009


Hi Göran, you have been using Magma for at least some years, I very
much welcome your feedback and code fixes or enhancements.

Please let me know if you commit something to MagmaTester (I don't
always pay attention to it), I'll review and try to integrate it into
a future version.

 Regards,
  Chris

PS - Regarding your index update issue, did that collection have a lot
of removes from the collection?


2009/4/17 Göran Krampe <goran at krampe.se>:
> Hi!
>
> Göran Krampe wrote:
>>
>> Hi!
>>
>> Just wanted to get the "truth" from Chris on this. I would like to rebuild
>> selected indexes from scratch, saw some code but... well, is there an
>> official API for this?
>
> I did this last night btw, the easiest solution was to create a new
> MagmaCollection with indexes on it, iterate over the old one and adding each
> object to the new one. That worked for me, but generally I think the current
> available behaviors for managing indexes is a bit lacking.
>
> I added #removeAllIndexes, that was trivial, but a #rebuildIndexNamed: would
> be nice to have.
>
> regards, Göran
>
> PS. I have experienced indexes not being updated properly - probably due
> to... something I have done. Not sure. But after a rebuild all was fine.
>
> _______________________________________________
> Magma mailing list
> Magma at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/magma
>


More information about the Magma mailing list