Slow query on a one-tuple table

Поиск
Список
Период
Сортировка
От Luís Roberto Weck
Тема Slow query on a one-tuple table
Дата
Msg-id 774d6080-d6d7-e9e7-7351-9a412c7d5956@siscobra.com.br
обсуждение исходный текст
Ответ на Re: comparing output of internal pg tables of referenced tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Slow query on a one-tuple table  (Michael Lewis <mlewis@entrata.com>)
Список pgsql-performance
Hi!

I have a query that SELECT's only one tuple using a PK (https://explain.depesz.com/s/Hskt)

the field I am selecting are a bigint and a text. Why does it read 1095 shared buffers read?

If I adda LIMIT 1 clause, the query runs much faster: https://explain.depesz.com/s/bSZn

This table has only one tuple anyway, so I can't understand why does it takes so long without the LIMIT 1.

В списке pgsql-performance по дате отправления:

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Delete huge Table under XFS
Следующее
От: Joao Junior
Дата:
Сообщение: Re: Delete huge Table under XFS