Re: [HACKERS] count of occurences PLUS optimisation

2001-09-14 Thread Thurstan R. McDougle
> On Thu, Sep 13, 2001 at 05:38:56PM +0100, Thurstan R. McDougle wrote: > > What I am talking about is WHEN the sort is required we could make the > > sort more efficient as inserting into a SHORT ordered list should be > > better than building a BIG list and sorting it, then on

Re: [HACKERS] count of occurences PLUS optimisation

2001-09-13 Thread Thurstan R. McDougle
HACKERS: see the end of this message about a possible optimisation for ORDER BY+LIMIT cases (the normal use of LIMIT?) Adam wrote: > > I help run a job database and have a table of search records. I want > a query that will return the top 10 jobs by search frequency. I'm > familiar with ORDER