Re: Indexing Order By columns

From: "Scott Marlowe" <smarlowe(at)qwest(dot)net>
To: "Hadley Willan" <hadley(dot)willan(at)deeperdesign(dot)co(dot)nz>
Cc: "PGSQL General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Indexing Order By columns
Date: 2004-09-06 20:14:47
Message-ID: 1094501687.8246.6.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, 2004-09-05 at 16:30, Hadley Willan wrote:
> Hi all,
> Can it speed things up to index the order by columns?

Yes, note that you need to index on what function you might be sorting
by as well:

create index test_dx on test (lower(name));

will allow indexes to be used on an order by lower(name)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Henry Combrinck 2004-09-06 20:39:54 Re: Passing RECORD variable from func1() to func2()
Previous Message Alex Soto 2004-09-06 19:33:51 help turning of NOTICE messages