Pooling

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
gcardona
Posts: 5
Joined: Wed 30 Jan 2008 13:09

Pooling

Post by gcardona » Wed 06 Feb 2008 16:09

Hello group, I have the next question:

I was checking the ODAC example:

\Demos\Miscellaneous\FailOver

I can see that option pooling are enable by parameters but I do not understand very well how can get each query get an session for the pool.

If I have some queries the only thing that I need to do, is link the TOraQuery with Session?

Will ODAC assign the session from the pool to a new query? if the default connection is busy.

Best regards,

Gustavo

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 07 Feb 2008 13:00

ODAC does not assign sessions from the pool to queries. Regardless of TOraSesion.Pooling property, all queries use the same session from their TOraSession component. If this session is busy, a query will not be executed until the session become free.

Pooling is not intended to execute queries in parallel. It is intended to improve performance of TOraSession.Connect method as I have wrote you in my last mail.

gcardona
Posts: 5
Joined: Wed 30 Jan 2008 13:09

RE:Pooling

Post by gcardona » Thu 07 Feb 2008 16:16

Plash wrote:In Pooling mode one session is created for one TOraSession component just as in normal mode. Pooling is intended to decrease connection time and minimize resources usage in application that has many TOraSession components with the same parameters (Server, Username, Password). When one TOraSession component disconnects, its session is not closed but it is placed to pool. When another TOraSession component connects it can take a session from the pool.
You are right, you told me that...

I apologize to ask two times...

Best regards and thanks for your help.

Gustavo

gcardona
Posts: 5
Joined: Wed 30 Jan 2008 13:09

About pooling

Post by gcardona » Thu 07 Feb 2008 19:58

Hello Plash, how can I ask if the connection is busy?

Best regards,

Gustavo

jfudickar
Posts: 202
Joined: Fri 10 Mar 2006 13:03
Location: Oberursel / Germany

Post by jfudickar » Fri 08 Feb 2008 07:23

You can't :-(

See my request here : http://crlab.com/forums/viewtopic.php?t=11023

Hopefully they will implement it in the not so far future.

Greetings
Jens

Post Reply