[Glass] Reusage of GsQuery instances ..

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Thu Mar 1 09:25:46 PST 2018


Marten,

Yes that should work fine ... if the GsQuery instance is persistent then 
you need to be careful about concurrent bind:to:.

Dale


On 03/01/2018 02:28 AM, Marten Feldtmann via Glass wrote:
>
> I though I read it in the ProgramGuide, but I can not find it. What 
> are the ways of reusages of instances of GsQuery instances under the 
> following circumstances:
>
>   * The collection it works on never changes
>   * but the value of the binded variables change with every query
>     execution
>
>
> So would it be enough to make
>
> |resultArray1 := |
>
> |  aGsQuery |
>
> |    bind: 'name' to: value ; |
>
> |      asArray.//|
>
> |resultArray2 := |
>
> |  aGsQuery|
>
> |    bind: 'name' to: value2 ;|
>
> |      asArray.|
>
>
> ???
>
>
>
> _______________________________________________
> 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/20180301/9fbd4a25/attachment.html>


More information about the Glass mailing list