Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j7krv-0006js-Iw for pgsql-performance@arkaria.postgresql.org; Fri, 28 Feb 2020 19:00:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j7kru-0003Wb-C8 for pgsql-performance@arkaria.postgresql.org; Fri, 28 Feb 2020 19:00:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j7kru-0003WQ-0i for pgsql-performance@lists.postgresql.org; Fri, 28 Feb 2020 19:00:14 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1j7krr-0006b4-53 for pgsql-performance@postgresql.org; Fri, 28 Feb 2020 19:00:12 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 96DA71B5441D9 for ; Fri, 28 Feb 2020 12:00:09 -0700 (MST) Date: Fri, 28 Feb 2020 12:00:09 -0700 (MST) From: legrand legrand To: pgsql-performance@postgresql.org Message-ID: <1582916409615-0.post@n3.nabble.com> In-Reply-To: References: Subject: Re: Many DataFileRead - IO waits MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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