TOraSession.ProxySession is not working properly
Posted: Wed 26 Oct 2005 22:44
Hi,
I just try the proxysession and it doesn't seem to work properly. It does switch the user context. But it is taking too long to connect which appears to be imporper implemention.
In our test, a normal session takes about 150 to 250 ms to connect to a 10g server. The session using proxy session takes the same amout of time to connect.
So I build another test application using OCI call. It takes about 150 ms to create a server handle, but get a user session through the server handle takes less than 10 ms.
It the proxy session takes as the same amount of time to establish, there is really no benefit to use it.
Also, I read your source code and find out that proxy session will not work with pooling. This does not scale very well. One proxy session may work if our system only have a few concurrent users. But it is impractical to support tens or hundreds of concurrent users without a pool of proxy sessions.
So unless the two can work together and the connection time is much shorter (<10ms), this proxy session feature is relatively useless.
Ping Kam
I just try the proxysession and it doesn't seem to work properly. It does switch the user context. But it is taking too long to connect which appears to be imporper implemention.
In our test, a normal session takes about 150 to 250 ms to connect to a 10g server. The session using proxy session takes the same amout of time to connect.
So I build another test application using OCI call. It takes about 150 ms to create a server handle, but get a user session through the server handle takes less than 10 ms.
It the proxy session takes as the same amount of time to establish, there is really no benefit to use it.
Also, I read your source code and find out that proxy session will not work with pooling. This does not scale very well. One proxy session may work if our system only have a few concurrent users. But it is impractical to support tens or hundreds of concurrent users without a pool of proxy sessions.
So unless the two can work together and the connection time is much shorter (<10ms), this proxy session feature is relatively useless.
Ping Kam