in reply to POE and DBI

I don't think storing DBI objects on the heap is quite POEish, because I guess you application freezes until a DBI transaction finishes. The more DBI connections the more chances to freeze ;-).

I would rather go with one of the four components Rocco told you already exist.

Dodge This!

Replies are listed 'Best First'.
Re^2: POE and DBI
by avo (Pilgrim) on Sep 12, 2005 at 08:27 UTC
    At present my script is forking a child and doing DBI->connect for each child... and upon disconnect the child get's killed and DBI->dissconnects. I would like to keep the same scenario... which is not a mission having in mind the existing async DBI components for POE... I just don't have any experience with POE and DBI... Perhaps if someone can give me a link or a short example will help a lot, so I don't need to reinvent the wheel. BTW I read everything for both four modules, but I cant see a way to keep my db handlers... the way they are now ($result = $dbh->prepare()...). Thanks for your great response!

      Here you can find an example. I'm sure you can find others too ;)

      Dodge This!