MySqlConnection.InfoMessage Event & Pooling

MySqlConnection.InfoMessage Event & Pooling

Postby shutterstock » Thu 15 Dec 2005 18:41

Hey! I want to use the infomessage event - but i also use pooling.

everytime i create a new connection (which is then grabbed from the pool) do I really need to indicate which callback is used for the InfoMessage event? Shouldn't I be able to just state a single infomessage event - and then everytime i get a connection from the pool, it uses that single infomessage event?

thx
Jon
shutterstock
 
Posts: 27
Joined: Sat 28 May 2005 20:37

Postby Serious » Fri 16 Dec 2005 07:49

You have to specify InfoMessage for each connection component you use, even if these connections are pooled from the pool.
Serious
 

Postby shutterstock » Fri 16 Dec 2005 23:52

Serious wrote:You have to specify InfoMessage for each connection component you use, even if these connections are pooled from the pool.


Is this an expensive operation? (setting the callback)

since i use pooled connections - i never keep any lying around....

maybe there should be a wrapper - so that certain operations affect all operations?

Jon
shutterstock
 
Posts: 27
Joined: Sat 28 May 2005 20:37

Postby Serious » Mon 19 Dec 2005 09:41

This is a client-side operation which consists of several calls. Do not be disturbed about performance when using it.
Serious
 


Return to dotConnect for MySQL