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

I don't think so... Right me. We have a mod_perl. And we have a 25 httpd process. We in MyMemory.pm make "tie %h ..." (once). We have a one connection in BerkeleyDB (imho). If we a put "tie %h ..." in get & set subs - we a get a many connections? ICQ UIN 41960352 Knock Knock please. We realy a need help & consultation.
  • Comment on Re^2: mod_perl & BerkeleyDB. Need help.

Replies are listed 'Best First'.
Re^3: mod_perl & BerkeleyDB. Need help.
by perrin (Chancellor) on Feb 16, 2006 at 19:54 UTC
    I don't do chat. If you want to ask more questions, ask them here. I'm not sure why you think 25 "connections" to BerkeleyDB is a bad thing. There are no sockets and there is no server -- BerkeleyDB is a library. The only limitation should be running out of filehandles on your operating system.
      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.
        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.