| От | Greg Stark |
|---|---|
| Тема | Re: [HACKERS] Much Ado About COUNT(*) |
| Дата | |
| Msg-id | 87y8ewx2ir.fsf@stark.xeocode.com обсуждение исходный текст |
| Ответ на | Re: [HACKERS] Much Ado About COUNT(*) (Wes <wespvp@syntegra.com>) |
| Ответы |
Re: [HACKERS] Much Ado About COUNT(*)
|
| Список | pgsql-general |
Wes <wespvp@syntegra.com> writes: > On 1/13/05 9:50 AM, "Greg Stark" <gsstark@mit.edu> wrote: > > Of course, in Oracle 'count(*)' is instantaneous. It doesn't have to count > the physical records one by one. That's simply false. Oracle does indeed have to count the records one by one. It doesn't have to read and ignore the dead records since they're in a separate place (but on the other hand it sometimes have to go read that separate place when it sees records that were committed after your transaction). It can also do index-only scans, which often helps, but it's still not instantaneous. -- greg
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера