[PERFORM] Dataset is fetched from cache but still takes same time to fetchrecords as first run

Поиск
Список
Период
Сортировка
От Sumeet Shukla
Тема [PERFORM] Dataset is fetched from cache but still takes same time to fetchrecords as first run
Дата
Msg-id CABUL137pc8pfW+KLm=7ucXpSDi_eG2qWiFMdR-3-UMEkZ=QUqA@mail.gmail.com
обсуждение исходный текст
Ответы Re: [PERFORM] Dataset is fetched from cache but still takes same timeto fetch records as first run  (Dave Stibrany <dstibrany@gmail.com>)
Список pgsql-performance
Both the first run and subsequent run takes same amount of time.

First Run:

"Seq Scan on d_payer (cost=0.00..8610.40 rows=121788 width=133) (actual time=8.760..98.582 rows=121788 loops=1)"
Buffers: shared read=2521"
"Planning time: 16.820 ms"
"Execution time: 108.626 ms"


Second Run:

"Seq Scan on d_payer (cost=0.00..8610.40 rows=121788 width=133) (actual time=0.010..18.456 rows=121788 loops=1)"
Buffers: shared hit=2521"
"Planning time: 0.083 ms"
"Execution time: 27.288 ms"


Can anyone please help me understand and fix this.


Thanks & Regards,
Sumeet Shukla

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PERFORM] substring index what is better way to query
Следующее
От: Dave Stibrany
Дата:
Сообщение: Re: [PERFORM] Dataset is fetched from cache but still takes same timeto fetch records as first run