Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: mysql, locked databases, Apache::DBI and mod_perl

by Flame (Deacon)
on May 19, 2003 at 19:14 UTC ( [id://259258]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: mysql, locked databases, Apache::DBI and mod_perl
in thread mysql, locked databases, Apache::DBI and mod_perl

Under mod_perl then, if I were to lock a table and have another process running at the same time, both using Apache::DBI and the same parameters, wouldn't it think of both processes as identical and thus complain when one tries to use tables that weren't locked by the other, and when one locks tables, wouldn't it undo the previous locks? I'm beginning to question the practicality of Apache::DBI in this context... perhaps I should do file locking on files named after the tables.



My code doesn't have bugs, it just develops random features.

Flame ~ Lead Programmer: GMS (DOWN) | GMS (DOWN)

  • Comment on Re^4: mysql, locked databases, Apache::DBI and mod_perl

Replies are listed 'Best First'.
Re: Re^4: mysql, locked databases, Apache::DBI and mod_perl
by perrin (Chancellor) on May 19, 2003 at 19:23 UTC
    There's nothing with Apache::DBI in this context. You are now asking about multiple processes. Multiple processes will never have the same database handle or the same connection. Within a single process, any time you connect with the same parameters you will get the same connction.
      Oh, well that would settle that. I'd been wondering that off and on for a while. Thanks



      My code doesn't have bugs, it just develops random features.

      Flame ~ Lead Programmer: GMS (DOWN) | GMS (DOWN)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found