In this situation, I think the bottle neck is establishing connection with
the database. Apache::DBI helps to maintain persistent database connection.
That's why the latter test is 20 times faster.
Jason
Hi folks,
I ran a same perl script twice. First time only under mod_perl,
I had some similar problem before. It was caused by the "PerlFreshRestart
on". Comment this line out and see what happens.
Jason
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Edmar Edilton da Silva
Sent: Thursday, November 23, 2000 5:40 AM
Is a package global var, such as %CACHE in the code below, persistent during
the life of a child process? Does each child get a copy of %CACHE after the
parent forks?
Thanks,
Jason
i often do something like this where i allow each individual child
process to cache it's data. i do something
Is Apache::DBI absolutely necessary if you want to establish persistent
database connection per child?
Thanks,
Jason
-Original Message-
From: David Hodgkinson [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 06, 2000 5:10 AM
To: Jason Liu
Cc: [EMAIL PROTECTED]
Subject: Re
Thank you for the help everyone.
Jason
Hi,
I can access oracle database from the main Apache process, but not from any
child processes. I am fairly new to this subject, can someone give me some
advice?
Thanks in advance,
Jason
"Undefined subroutine
dbChannel::command called at /usr/up/papi/lib/PAPIDatabase.pm", which is a
library file that works.
In general, how should database connections be handled between parent and
child processes? Can you establish database connections from within a
handler?
Jason
Hi,
I was trying to build mod_perl 1.24_01 and apache 1.3.14. I used the
following command:
perl Makefile.PL
make test make install
The Makefile wants to use the "cc" compiler. Can I use "gcc" instead?
Thanks,
Jason