| От | Rod Taylor |
|---|---|
| Тема | Re: Speeding up select distinct |
| Дата | |
| Msg-id | 1110996623.1132.244.camel@home обсуждение исходный текст |
| Ответ на | Speeding up select distinct (Laurent Martelli <laurent@aopsys.com>) |
| Ответы |
Re: Speeding up select distinct
|
| Список | pgsql-performance |
On Wed, 2005-03-16 at 18:58 +0100, Laurent Martelli wrote: > Consider this query: > > SELECT distinct owner from pictures; The performance has nothing to do with the number of rows returned, but rather the complexity of calculations and amount of data to sift through in order to find it. > Any ideas, apart from more or less manually maintaining a list of > distinct owners in another table ? This would be the proper thing to do, along with adding a foreign key from pictures to the new owner structure for integrity enforcement. --
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера