Re: DBI vs. piping query to Mysql

2002-04-04 Thread Jeff Seger
If you are running apache with mod_perl and if the site has more than a couple of visitors an hour and you use Apache::DBI for connection pooling, you can bet that you will speed up by using DBI. A lot. A whole lot. On Wed, 2002-04-03 at 18:33, Peter Scott wrote: > At 04:28 PM 4/3/02 -0500, Kevi

RE: DBI vs. piping query to Mysql

2002-04-03 Thread Job Miller
if this is a single query in a web page, at least he avoids the hassle of trying to install DBI and DBD.. :) we all know how many hundreds of messages we see from people who can't get their DBD drivers to make properly. what kind of overhead does DBI and DBD add to your script in a plain cgi envi

Re: DBI vs. piping query to Mysql

2002-04-03 Thread Peter Scott
At 04:28 PM 4/3/02 -0500, Kevin Old wrote: >Hello all, > >I am a consultant brought in to manage and restructure some Perl scripts that >were written some time ago. The programmer at that time was using the >following code to do a query from within a CGI page. > > ${query} = "SELECT ccyymmdd

RE: DBI vs. piping query to Mysql

2002-04-03 Thread Sterin, Ilya
Wow, that's some silly code:-) Yes, you can do this and in some instances running through mysql command might be faster, but the portability, design, expandability of this sucks. You can use placeholders, long column queries, etc... Did this guy write this years and years ago or something, or w