Re: Random resultset retrieving -> performance bottleneck - Mailing list pgsql-sql

From Christopher Kings-Lynne
Subject Re: Random resultset retrieving -> performance bottleneck
Date
Msg-id 009401c23ad5$eb6512f0$0200a8c0@SOL
Whole thread Raw
In response to Random resultset retrieving -> performance bottleneck  (Cédric Dufour <cedric.dufour@freesurf.ch>)
Responses Re: Random resultset retrieving -> performance bottleneck
List pgsql-sql
> I'm running into a performance problem when considering the following
> scenario: I have a fairly large table (1mio rows) related to other smaller
> tables (between 100 and 10000 rows) and would like to retrieve the joined
> data (through a view) in random order. In order to do so, the main table
> contains a 'Random' field (which is updated on a regular basis, in order
to
> re-randomize the data set), on which an index is created:

Have you tried adding ORDER BY RANDOM() onto your select query?

Chris




pgsql-sql by date:

Previous
From: "Rajesh Kumar Mallah."
Date:
Subject: Re: Ltree usage..
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: What about this?