| От | Greg Stark |
|---|---|
| Тема | Re: Various performance questions |
| Дата | |
| Msg-id | 87n0bmwl7w.fsf@stark.dyndns.tv обсуждение исходный текст |
| Ответ на | Re: Various performance questions (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Various performance questions
|
| Список | pgsql-performance |
Tom Lane <tgl@sss.pgh.pa.us> writes: > Greg is correct. int8 is a pass-by-reference datatype Just to keep the conversation on track. the evidence from this particular post seems to indicate that my theory was wrong and the overhead for count(*) is _not_ a big time sink. It seems to be at most 10% and usually less. A simple "select 1 from tab" takes nearly as long. I'm still puzzled why the times on these are so different when the latter returns fewer records and both are doing sequential scans: select 1 from tab select 1 from tab where a < 1000 -- greg
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера