| От | Bruno Wolff III |
|---|---|
| Тема | Re: [despammed] question about index |
| Дата | |
| Msg-id | 20041216141025.GC2768@wolff.to обсуждение исходный текст |
| Ответ на | Re: [despammed] question about index (Andreas Kretschmer <akretschmer@despammed.com>) |
| Ответы |
Re: [despammed] question about index
|
| Список | pgsql-sql |
On Thu, Dec 16, 2004 at 12:01:39 +0100, Andreas Kretschmer <akretschmer@despammed.com> wrote: > > > > considering that almost 70% of the rows will be with 'VALUE1', 20% > > will be with 'VALUE2' and 10% will be with 'VALUE3' on the average. > > > > should I create an index to speedup the counts or not ? > > Yes. Indexes will probably not help in this case. Even when looking at 10% of the rows, a sequential scan is still going to be faster than an index scan in most cases.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера