> 1. Is there a easier way, I mean more transparent way to cache Tie to
> DBM files (I need READONLY).
> Something like "use Apache::DBI" in startup.pl file  and then when I use
> "tie" or whatever ... if there is cached connection to get it instead
> creating new one, will this improve the speed very much. (I read
> mod_perl manual,  but I want something simple for usage :")).

http://perl.apache.org/guide/dbm.html

See Ken Williams' Tie::DB_Lock 
http://perl.apache.org/guide/dbm.html#Tie_DB_Lock

> 2. How big the DBM file can be .... for ex. what size Celeron300/128MB
> can handle fast enought, does anyone made some experiments. (At the
> moment I can't use real DB, cause I'm doing this over telnet connection
> :"(, and is very hard to configure a real one DB with all necesary
> stuff).

Too easy, write a perl script to test out your machine :)

> 3. When I try to use
>  tie %xxx,......, $DB_BTREE ....;
> or
>  tie %xxx,......, $DB_HASH ....;
> 
> I get the following error:
> " type parameter is not a reference at /usr/lib/perl/..../DB_File.pm
> line 255"

man DB_File - offtopic here

_______________________________________________________________________
Stas Bekman  mailto:[EMAIL PROTECTED]    www.singlesheaven.com/stas  
Perl,CGI,Apache,Linux,Web,Java,PC at  www.singlesheaven.com/stas/TULARC
www.apache.org  & www.perl.com  == www.modperl.com  ||  perl.apache.org
single o-> + single o-+ = singlesheaven    http://www.singlesheaven.com
  • DBM raptor
    • Stas Bekman

Reply via email to