Re: [GENERAL] Tuning queries on large database - Mailing list pgsql-performance

From Merlin Moncure
Subject Re: [GENERAL] Tuning queries on large database
Date
Msg-id 6EE64EF3AB31D5448D0007DD34EEB34101AF21@Herge.rcsinc.local
Whole thread Raw
List pgsql-performance
Another question:
How are you benchmarking your queries?  Are you running them from within
psql?  Do you plan to run these queries from within an application?

psql introduces some overhead because it has to scan the result set to
determine the widths of the columns for formatting purposes.  Try
returning a result set inside the libpq library if you know C and
compare the times.  Of course, if you are already using libpq, this
moot.  If you do know libpq, try setting up a loop that fetches the data
in 10k block in a loop...I will wager that you can get this to run in
under two minutes (Q4).

Merlin





pgsql-performance by date:

Previous
From: Rod Taylor
Date:
Subject: Re: [GENERAL] Tuning queries on large database
Next
From: "Merlin Moncure"
Date:
Subject: Re: [GENERAL] Tuning queries on large database