Reusage of GsQuery instances ..

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Reusage of GsQuery instances ..

GLASS mailing list

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
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: Reusage of GsQuery instances ..

GLASS mailing list

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
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass