Re: Random resultset retrieving -> performance bottleneck

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Random resultset retrieving -> performance bottleneck
Дата
Msg-id 009401c23ad5$eb6512f0$0200a8c0@SOL
обсуждение исходный текст
Ответ на Random resultset retrieving -> performance bottleneck  (Cédric Dufour <cedric.dufour@freesurf.ch>)
Ответы Re: Random resultset retrieving -> performance bottleneck  (Cédric Dufour <cedric.dufour@freesurf.ch>)
Список 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 по дате отправления:

Предыдущее
От: "Rajesh Kumar Mallah."
Дата:
Сообщение: Re: Ltree usage..
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: What about this?