Perl/DBI vs Native - Mailing list pgsql-performance

From Valentin Bogdanov
Subject Perl/DBI vs Native
Date
Msg-id 768129.60859.qm@web25802.mail.ukl.yahoo.com
Whole thread Raw
Responses Re: Perl/DBI vs Native
Re: Perl/DBI vs Native
Re: Perl/DBI vs Native
List pgsql-performance
Hi,

I have ran quite a few tests comparing how long a query takes to execute from Perl/DBI as compared to psql/pqlib. No
matterhow many times I run the test the results were always the same. 

I run a SELECT all on a fairly big table and enabled the log_min_duration_statement option. With psql postgres
consistentlylogs half a second while the exact same query executed with Perl/DBI takes again consistently 2 seconds. 

If I were timing the applications I would have been too much surprised by these results, obviously, processing with
Perlwould be slower than a native application. But it's the postmaster that gives these results. Could it be because
theDBI module is slower at assimilating the data? 

Any light on the subject would be greatly appreciated.


Regards,

Val


      __________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo!
http://uk.docs.yahoo.com/ymail/new.html

pgsql-performance by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Less rows -> better performance?
Next
From: Andreas Hartmann
Date:
Subject: Re: Less rows -> better performance?