Re: Sorting performance vs. MySQL - Mailing list pgsql-general

From Yang Zhang
Subject Re: Sorting performance vs. MySQL
Date
Msg-id 9066fa251002221036w223fef8bqe780113bee2875b1@mail.gmail.com
Whole thread Raw
In response to Re: Sorting performance vs. MySQL  (Richard Broersma <richard.broersma@gmail.com>)
Responses Re: Sorting performance vs. MySQL
List pgsql-general
On Mon, Feb 22, 2010 at 1:30 PM, Richard Broersma
<richard.broersma@gmail.com> wrote:
> On Mon, Feb 22, 2010 at 10:17 AM, Frank Heikens <frankheikens@mac.com> wrote:
>
>> There is no index on the column transactionid in your PostgreSQL-table, as
>> there is in your MySQL-table. This explains the difference.
>>
>> CREATE INDEX i_transactionid ON public.metarelcloud_transactionlog
>> (transactionid);
>
> Does an index help a sort operation in PostgreSQL?

I also share the same doubt. An external merge-sort needs to make
complete passes over the entire dataset, with no index-directed
accesses.
--
Yang Zhang
http://www.mit.edu/~y_z/

pgsql-general by date:

Previous
From: Yang Zhang
Date:
Subject: Re: Sorting performance vs. MySQL
Next
From: Jignesh Shah
Date:
Subject: Re: Questions regarding SET option.