[Glass] GsQuery results are duplicated

BrunoBB via Glass glass at lists.gemtalksystems.com
Mon Jan 9 04:47:41 PST 2017


Dale,

i think i will apply: 
   | nsc query |
   nsc := IdentityBag new.
   nsc add: 1 -> '1'.
   nsc add: 2 -> '1'.
   nsc add: 3 -> '1'.
   query := '(each.key = 2) | (each.value = ''1'')' asQueryOn: nsc.
   query queryResult * nsc 
(thanks for the patch :)

But the better solution will be to migrate to 3.4 when shipped :)

The information about * operator is very useful:
"is implemented as a primitive and our identity-based
intersection and union primitives are pretty efficient (they do not page
the objects into memory ... operations are performed at the collection
leaf level without touching the elements themselves)."

Regards,
Bruno



--
View this message in context: http://forum.world.st/GsQuery-results-are-duplicated-tp4929023p4929123.html
Sent from the GLASS mailing list archive at Nabble.com.


More information about the Glass mailing list