Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: POE and DBI

by Ultra (Hermit)
on Sep 12, 2005 at 06:05 UTC ( [id://491159]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://491159]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-28 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found