Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOJUY-0004yj-Qo for pgsql-performance@arkaria.postgresql.org; Fri, 23 Jun 2017 07:58:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dOJUY-0008Jb-DO for pgsql-performance@arkaria.postgresql.org; Fri, 23 Jun 2017 07:58:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dOJSk-0001ij-AL for pgsql-performance@postgresql.org; Fri, 23 Jun 2017 07:57:06 +0000 Received: from sonic316-22.consmr.mail.ir2.yahoo.com ([87.248.110.181]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dOJSg-0002G6-L6 for pgsql-performance@postgresql.org; Fri, 23 Jun 2017 07:57:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1498204620; bh=pry1b0gEuPQYtC8+Sts5PpIJzXnvZ2gwgRMavtoTJoM=; h=Date:From:Reply-To:To:Cc:Subject:References:From:Subject; b=qH15aMA3HFGysbaYgw348kXki8m+LQ7c3n2rvkLNwl4veuND//kCuwU0MQb1nLFQNet7EoQAUzsm9WXxGbeZQujfkteNi8m0pEEyCG54aqGkQLqelpusWCmu9dxqS3uL6AT3XQOZctLStGJM8ZuRZBqh50v7FxKXmKa/fA8nnEqiJ8PNkp/3/qD4Ilj5qy/HP+P6TpuiZk8W8HU+TKLGsrBFDQubBrXv5gDV1c/afdB+F83EqWt2QM6HhJwRnq/x8E6yhlSqDHB22jQZ2DjDDHgVKJ/co0AU8+/XG6U1cpe9tX4uRlxC0BRp2kLhBMLLsu9062/NMfLcVz0GLdKp6Q== X-YMail-OSG: cycy4SIVM1ltCCDxwkivvGERWCIbDvRhjCnh1ifgzt8LSqXjR7.lk5hILfPIydh T5KSGAm2J4UwKnrYVFCnW0T6HFUJJRJnDVnTIWePn6M25pOdzi8GYD0ImSeavk9ZPVTNsSfbczeA XLaaejfd6PFvzOlaLShcBvj_w_WaHBHi3ksLPqQlSlYrRJ2iStmFJuFtNGPHSotupix7T9MzIfTr LAXesovDpbLr63jkyIlqFbwnaNwIVIOtllF199CyUUBSNFaDMtax2iEGzTtdy8ky3wF1CqXmHIow nO36AYJCx9btFwQEPCIHsWDjZkDTU5d_Frqh.qIqrZZ38wMbtBRPa0XP0tQKaUcVK4qNzxjzIwQX BOdbcdAL02JtdOzOgxT5nbAcOW51RVQrfraQtVGVmy2xVrzXVeRNqWDuwDPbXV3Wgl4xTbbRKqXS 3pARX44PVqAqGwAXg.Q0A32S1a9RmiN6M4TpnWUSwxAKF2HVlp7790gyVxRTlAKLHE54z8CEgI_Q gdKk5L4d3OBtNHjW8VqrrxSrmCF.0mDAdS5v51vc- Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ir2.yahoo.com with HTTP; Fri, 23 Jun 2017 07:57:00 +0000 Date: Fri, 23 Jun 2017 07:52:59 +0000 (UTC) From: Glyn Astill Reply-To: Glyn Astill To: Tom Lane , Sumeet Shukla Cc: Dave Stibrany , "pgsql-performance@postgresql.org" Message-ID: <1114378459.249712.1498204379460@mail.yahoo.com> Subject: Re: Dataset is fetched from cache but still takes same time to fetch records as first run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <1114378459.249712.1498204379460.ref@mail.yahoo.com> X-Mailer: WebService/1.1.9948 YahooMailNeo Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0 Content-Length: 897 List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org >From: Tom Lane >To: Sumeet Shukla >Cc: Dave Stibrany ; pgsql-performance@postgresql.org >Sent: Friday, 23 June 2017, 5:50 >Subject: Re: [PERFORM] Dataset is fetched from cache but still takes same time to fetch records as first run > Sumeet Shukla writes:> >> Yes, but when I actually execute the query in pgAdmin3, it takes exactly >> the same time of 19.5 secs. > >pgAdmin is well known to be horribly inefficient at displaying large >query results (and 121788 rows qualifies as "large" for this purpose, >I believe). The circa-tenth-of-a-second savings on the server side >is getting swamped by client-side processing. > >It's possible that pgAdmin4 has improved matters in this area. > It's also possibly time taken for the results to be tranferred over a network if the data is large. Glyn -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance