Re: Slow Query- Simple taking

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: "Ozer, Pam" <pozer(at)automotive(dot)com>
Cc: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Slow Query- Simple taking
Date: 2010-10-28 14:42:18
Message-ID: AANLkTin8uiOvoELnO3bpQuTL1mQvi=zNHX-dSkRG8qMq@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, Oct 19, 2010 at 6:05 PM, Ozer, Pam <pozer(at)automotive(dot)com> wrote:
> On mysql the same query only takes milliseconds not seconds.  That's a
> big difference.

I can believe that MySQL is faster, because they probably don't need
to do the bitmap heap scan. There is a much-anticipated feature
called index-only scans that we don't have yet in PG, which would help
cases like this a great deal.

But I don't see how MySQL could send back 116,000 rows to the client
in milliseconds, or sort them that quickly.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Mladen Gogala 2010-10-28 14:51:10 Re: Slow Query- Simple taking
Previous Message Robert Haas 2010-10-28 14:40:05 Re: Slow Query- Simple taking