Re: performance of ORDER BY random()

From: will trillich <will(at)serensoft(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: performance of ORDER BY random()
Date: 2001-03-28 23:08:55
Message-ID: 20010328170855.D16380@mail.serensoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Mar 23, 2001 at 02:09:57PM -0800, culley harrelson wrote:
> Does anyone have any input on the performance of ORDER BY random() ? I
> have been developing using this feature and it would be good to know
> what to expect when my tables increase in size :)

noe thing to try would be to create a tinker-toy database and
populate it with a few hundred thousand records. then see what
you get when you

...order by random()...

then /you/ can tell /us/ what the results are.

--
It is always hazardous to ask "Why?" in science, but it is often
interesting to do so just the same.
-- Isaac Asimov, 'The Genetic Code'

will(at)serensoft(dot)com
http://newbieDoc.sourceforge.net/ -- we need your brain!
http://www.dontUthink.com/ -- your brain needs us!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jean-Christophe Boggio 2001-03-28 23:13:01 Unexplained behaviour
Previous Message will trillich 2001-03-28 23:07:33 optimizing a view-driven query