| От | Peter Eisentraut |
|---|---|
| Тема | Re: Indices for select count(*)? |
| Дата | |
| Msg-id | 200512231612.37801.peter_e@gmx.net обсуждение исходный текст |
| Ответ на | Re: Indices for select count(*)? (Jaime Casanova <systemguards@gmail.com>) |
| Ответы |
Re: Indices for select count(*)?
|
| Список | pgsql-general |
One way to conceptually tackle this count(*) issue would be to create a new index type for it. The index type would (logically) just need to implement insert and delete operations and keep a running count with a big lock around it. Users could then choose to trade off concurrent performance against the speed of count() by creating or dropping that index. Implementing that type of index might not even be that hard but convincing the planer and executor to use it without too many hardcoded cases seems more challenging.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера