in reply to mod_perl & BerkeleyDB. Need help.

You have to use locking to make this work. There is no way to have too many connections to BerkeleyDB, but without locking you will lose data. There is a code example linked from this page.

Also, don't write your own serializer. Use the Storable module. It's much faster and more reliable.

Replies are listed 'Best First'.
Re^2: mod_perl & BerkeleyDB. Need help.
by Anonymous Monk on Feb 16, 2006 at 19:41 UTC
    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.
      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.