pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: legrand legrand <legrand_legrand@hotmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: Many DataFileRead - IO waits
Date: Fri, 28 Feb 2020 12:00:09 -0700 (MST)
Message-ID: <1582916409615-0.post@n3.nabble.com> (raw)
In-Reply-To: <CAEPE5bMHZ3vLS85O7dTFGhRg+SG=Z2=dDbupAmjNAnDEBPayYQ@mail.gmail.com>
References: <CAEPE5bNNkFhoPRufSTrPZVA-W+bbu+LgXUQ1OzD9VwMowV5=VA@mail.gmail.com>
	<CAHOFxGrWoQ+o=aDYkeS50n9bgjJn2FCFrFXSsx5DbgUj=mh9Wg@mail.gmail.com>
	<CAEPE5bOtH=8dwFyu8MSOiksK56jAH7j_-i6c-_JatFx=6UofYg@mail.gmail.com>
	<CAHOFxGrMHhm+kGeB=DP8nYm-H2k2A5CU4gbFqWrtQtD_VETgKg@mail.gmail.com>
	<CAEPE5bMHZ3vLS85O7dTFGhRg+SG=Z2=dDbupAmjNAnDEBPayYQ@mail.gmail.com>

Hello,
I'm not able to use your perfs diagrams, 
but it seems to me that not using 3rd column of that index (int_otherid2)
generates an IO problem.

Could you give us the result of

explain (analyze,buffers) SELECT
tabledata.uuid_id,tabledata.int_id,tabledata.timestamp_date,tabledata.int_otherid,tabledata.float_value,tabledata.int_otherid2,tabledata.int_otherid3,tabledata.int_rowver
FROM tabledata 
WHERE timestamp_date <= '2020-02-24 03:05:00.013'::timestamp without time
zone
ND int_otherid3 = '3ad2b707-a068-42e8-b0f2-6c8570953760'
AND tabledata.int_id=8149 
ORDER BY timestamp_date DESC 
LIMIT 1

and this for each value of int_otherid3 ?
and tell us if you are able to change the sql ?

Thanks
Regards
PAscal



--
Sent from: https://www.postgresql-archive.org/PostgreSQL-performance-f2050081.html





view thread (10+ messages)  latest in thread

Message-ID: <1582916409615-0.post@n3.nabble.com>
Permalink:  ../1582916409615-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1582916409615-0.post@n3.nabble.com

 · 

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: pgsql-performance@postgresql.org
  Cc: legrand_legrand@hotmail.com
  Subject: Re: Many DataFileRead - IO waits
  In-Reply-To: <1582916409615-0.post@n3.nabble.com>

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

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