import-bot (20212) [Avatar] Offline
#1
[Originally posted by shiver]

I am attempting to test that I have configured my PowerBuilder components
correctly to execute in parallel for scalability.

I have a PB component method that returns (potentially) 60,000 rows.
I am using this to test concurrency.

I have set concurrency ON and bind thread OFF.

When I use 3 PB clients to simultaneously invoke the component, they serialize
and perform one at a time.

Page 44-47 appear to state that this is the correct configuration.

-David
NT4/EAS 3.5 c5
import-bot (20212) [Avatar] Offline
#2
Concurrency OK, bind thread question
[Originally posted by shiver]

Ok we just retested and now it works OK.

We are now reviewing the book and other messages RE:

We have a datastore as an instance.

What actually happens when we turn OFF bind thread with an instance datastore?

Memory leak? Bad data? Smoke? Earthquake?
import-bot (20212) [Avatar] Offline
#3
Concurrency OK, bind thread question
[Originally posted by jasonweiss]

The big issue is not having a datastore with bind thread turned off, it is
having a datastore as _an instance variable_ and turning bind thread off. In
that situation, you could have a datastore be constructed in Thread A, pooled,
and then accessed in Thread B. In that situation, the datastore goes to look
for data it stored using Thread Local Storage (TLS) and it isn't found because
it was created in thread A, and you are now in thread B.

> Ok we just retested and now it works OK.
>
> We are now reviewing the book and other messages RE:
>
> We have a datastore as an instance.
>
> What actually happens when we turn OFF bind thread with an instance datastore?
>
> Memory leak? Bad data? Smoke? Earthquake?