Re: [HACKERS] Re: order by and index path

From: Martin <marty(at)outputservices(dot)com>
To: hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Re: order by and index path
Date: 1998-10-15 16:32:52
Message-ID: 199810151632.KAA09027@fkiller
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> > (who really selects nearly all rows from a 5M row
> > table?).

I have to comment here from a practical standpoint. My company does the above
dozens of times per day using Oracle 7 under Solaris. This is a *VERY*
common operation in data processing organizations (like mine) running large
batch jobs in tight time windows. At least under Oracle 7 (not sure about
ProgreSQL, still running tests), it is impractical to sort an extraction
using ORDER BY, but *MUCH* cheaper to index the fields wanted and then
artificially constrain the query
to convince the oprimizer to use the index for extraction. You can
get the whole dataset in any order you want with few resources. Again, we
do it all the time.

Marty

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 1998-10-15 16:36:26 Re: [HACKERS] Re: order by and index path
Previous Message D'Arcy J.M. Cain 1998-10-15 16:28:20 Re: [HACKERS] PostgreSQL v6.4 BETA2...