in reply to Re: Using fork with DBI to create simultaneous db connections.
in thread Using fork with DBI to create simultaneous db connections.
The good way to check would be to have your program fork, let each child open a connection, then sleep for a minute or something. During that time, log on to the database using another tool (Toad or DB-Artisan or something) and see how many connections are in your name. If the numbers agree, you're done....or, you could have each child just print the database handle. Like all perl objects, it's just a reference, so it should print something like DBI::db=HASH(0x1223456). If they all print the same reference, done. No monkeying around on the database at all (well, except the DBI calls that is...but you already knew that :P).
thor
Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using fork with DBI to create simultaneous db connections.
by etcshadow (Priest) on Feb 08, 2005 at 05:34 UTC | |
by thor (Priest) on Feb 08, 2005 at 12:46 UTC |