Re: Performance pb vs SQLServer. - Mailing list pgsql-performance

From Tom Lane
Subject Re: Performance pb vs SQLServer.
Date
Msg-id 14401.1124068725@sss.pgh.pa.us
Whole thread Raw
In response to Re: Performance pb vs SQLServer.  ("Steinar H. Gunderson" <sgunderson@bigfoot.com>)
Responses Re: Performance pb vs SQLServer.
List pgsql-performance
"Steinar H. Gunderson" <sgunderson@bigfoot.com> writes:
> To me, it looks like he'll get 88 rows, not 3.2M. Surely we must be able to
> do something better than a full sequential scan in this case?

Not really.  There's been some speculation about implementing index
"skip search" --- once you've verified there's at least one visible
row of a given index value, tell the index to skip to the next different
value instead of handing back any of the remaining entries of the
current value.  But it'd be a lot of work and AFAICS not useful for
very many kinds of queries besides this.

            regards, tom lane

pgsql-performance by date:

Previous
From: John Arbash Meinel
Date:
Subject: Re: Performance pb vs SQLServer.
Next
From: "Steinar H. Gunderson"
Date:
Subject: Re: Performance pb vs SQLServer.