[Glass] Garbage Collection of indexes

Richard Sargent via Glass glass at lists.gemtalksystems.com
Wed Oct 29 09:51:04 PDT 2014


Bear in mind that you already have the code to create the indexes. You may
need to parameterize it to allow you to pass in the new collection.
On Oct 29, 2014 9:47 AM, "Dale Henrichs via Glass" <
glass at lists.gemtalksystems.com> wrote:

>
>
> On Wed, Oct 29, 2014 at 6:31 AM, Mariano Martinez Peck via Glass <
> glass at lists.gemtalksystems.com> wrote:
>
>> Hi folks,
>>
>> The GemStone Programming Guide says about indexes:
>>
>> "After creating indexes on a collection, be sure to remove these indexes
>> before dereferencing the collection. Otherwise, the index will remain and
>> prevent the collection and indexing structures from being garbage
>> collected."
>>
>> Is this still being true? Or latest GemStone do this automatically?
>>
>
> This is still true ... we are considering doing something about this in
> 3.3, but nothing firm yet...
>
>>
>>
>> Also.... say I have 'collection1' which is a RcIdentityBug with the "old"
>> list of my objects. And now I have 'collection2' which is another
>> RcIdentityBad with the "new" list. Is there an automatic way to get the
>> indexes from 'collection1' and apply them to 'collection2'?
>>
>
> If you are using 3.2, the answer would be "yes, use the following":
>
>    indexSpec := collection1  indexSpec.
>    indexSpec createIndexesOn: collection2.
>
> Prior to 3.2 it's not very convenient ... the closest you can get is by
> using the messages:
>
>    equalityIndexedPathsAndConstraints
>    identityIndexedPaths
>
> to get the raw information from a collection and then fabricating the
> appropriate index creation message ...
>
> Dale
>
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20141029/efc83fb6/attachment.html>


More information about the Glass mailing list