| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера