public inbox for [email protected]  
help / color / mirror / Atom feed
From: Sumeet Shukla <[email protected]>
To: [email protected]
Subject: Dataset is fetched from cache but still takes same time to fetch records as first run
Date: Thu, 22 Jun 2017 19:40:35 -0500
Message-ID: <CABUL137pc8pfW+KLm=7ucXpSDi_eG2qWiFMdR-3-UMEkZ=QUqA@mail.gmail.com> (raw)
List-Unsubscribe:  <mailto:[email protected]?body=unsub%20pgsql-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


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: Dataset is fetched from cache but still takes same time to fetch records as first run
  In-Reply-To: <CABUL137pc8pfW+KLm=7ucXpSDi_eG2qWiFMdR-3-UMEkZ=QUqA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox