in reply to Re^3: mod_perl & BerkeleyDB. Need help.
in thread mod_perl & BerkeleyDB. Need help.

I look for chat... because I not very good a English... & in ICQ I fastest find answer to my quesions. So, 25 connections - no bad... I know. But if we a "tie %h ..." in get & set subs - we make connections when use a get_memory & set_memory subs... It's a thousands connection per hour... imho. Right me.
  • Comment on Re^4: mod_perl & BerkeleyDB. Need help.

Replies are listed 'Best First'.
Re^5: mod_perl & BerkeleyDB. Need help.
by perrin (Chancellor) on Feb 17, 2006 at 03:39 UTC
    There's no need to tie in each sub. You can tie once in each process and just keep it open. You need to use BerkeleyDB's locking. Look at the example code I pointed you to.
      Or I don't understand or u. If we a "tie %h" in module (once) - no tied in subs... We have a error. See first message. And we need help.
        You have the error because you aren't opening the database in the right way. The code example that I gave you a link to shows how to do it correctly.