Perl/DBI vs Native

From: Valentin Bogdanov <valiouk(at)yahoo(dot)co(dot)uk>
To: psql performance <pgsql-performance(at)postgresql(dot)org>
Subject: Perl/DBI vs Native
Date: 2008-07-21 11:19:15
Message-ID: 768129.60859.qm@web25802.mail.ukl.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 matter how 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 consistently logs 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 Perl would be slower than a native application. But it's the postmaster that gives these results. Could it be because the DBI 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

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Andreas Hartmann 2008-07-21 11:25:30 Re: Less rows -> better performance?
Previous Message Richard Huxton 2008-07-21 11:06:11 Re: Less rows -> better performance?