Re: Result Set over Network Question

From: Claudio Freire <klaussfreire(at)gmail(dot)com>
To: "Ronald Hahn, DOCFOCUS INC(dot)" <rhahn(at)docfocus(dot)ca>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Result Set over Network Question
Date: 2012-05-03 14:28:18
Message-ID: CAGTBQpZ-J_y1Wxq8f8=2KVHoaA_zOr26_Y12B4OzkZt1kD=7=Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, Apr 30, 2012 at 3:32 PM, Ronald Hahn, DOCFOCUS INC.
<rhahn(at)docfocus(dot)ca> wrote:
> We went to the SQL2k server (On the same hardware) and ran the selects
> again. When bringing back on an int32 PG was faster with the fetch and the
> row coming back in 1-5 ms and SQL2k coming back in 500-700 ms. This tells me
> that the problem is not related to PG index or Disk.  When bringing back 400
> bytes PG fetch time would be 1-2 ms but the results would take 2-3 s but
> SQL2k would it bring back in 700-900 ms. Working with 866 bytes, PG fetch
> time is 1-3 ms with the results coming back in 9 - 11 s and SQL2k bringing
> the results back in 2-3 s.

I think the opposite. I'm thinking it's quite probable that it's disk
access the one killing you. Remember, two different database systems
means two different access patterns.

To figure it out, you have to provide a lot more information on your
system and your query. Check out how to post "Slow Query Questions"
[0]. Only after getting all that information the people of the list
will be able to have a clue as to what your problem is.

[0] http://wiki.postgresql.org/wiki/SlowQueryQuestions

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Merlin Moncure 2012-05-03 15:00:59 Re: Result Set over Network Question
Previous Message Shaun Thomas 2012-05-03 13:52:02 Re: Configuration Recommendations