Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g60Be-0002Ld-LR for pgsql-general@arkaria.postgresql.org; Fri, 28 Sep 2018 21:20:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g60Bb-0004jB-Kh for pgsql-general@arkaria.postgresql.org; Fri, 28 Sep 2018 21:20:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g60Ba-0004ip-An for pgsql-general@lists.postgresql.org; Fri, 28 Sep 2018 21:20:31 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g60BS-0000Ts-3D for pgsql-general@lists.postgresql.org; Fri, 28 Sep 2018 21:20:28 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 8240CC4E; Fri, 28 Sep 2018 17:20:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 28 Sep 2018 17:20:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=my5u52AshS4w8WwacQk8IpIHe742M LN5oKe5stP2JPc=; b=JcvaV7Z6NNOA0zibVsSz/82tiyiSC449CBsiMsEMJyMZ+ yLr/lqT2W9vYlsXspZ0aDVc/7uf888YC3d8gs108Ae30qNg0MN0HEheQb7Jyg2YB lJyH6x95sjmXnUs7zZio7z49eWgik3aJRFC5Ij50SL1Z4Bwfb2VJLRF16cdmNtCw yYzPX7lNFmC/GlLh9eJ/ohFxRI0loPXoPNYWXEX7zfnnWuw+87QnFv05rPJZZ1eu /ylRv7lgVnGLeTfAD1MEslRGW1pcLfiZDlHplVci3EMTZysU1mrWmdJCfxpWba9x Ym/rVJIREWMufj+c0oRq9/zx7Znf5JVHYxtoeH3VQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=my5u52 AshS4w8WwacQk8IpIHe742MLN5oKe5stP2JPc=; b=O/FLvJrBti734MVNhewcfs jcH3+DPqQZFAd9okPMBXd8+nJLLpk/zEqc/ywBwgGY3/APqUF0d9hio9gYl8w0Rp oFwn/tf47bRAcGh9rWfck7//KzyDRBDcxi7k0yHGaBr+azDTYvw3qCXrydC/jWpy 2FeP7/Qo5/+cnXJsGRakfoNqIcchuF60yzUZL7FU7cuATom8Cd51EFyVWFlpq/xa KBBj2PBVt/OPnPHkQaSCQcvTRY4g/vjM9M5129gdJKGTnJFRLcDQu3ilT6Mk3TUc GfMvzRozZBkcDZTeho6hHqQ8eJLBzpfsVzPOgRNaROgaYoVz4JI/SZbOeQZtjetA == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 0E33B102D7; Fri, 28 Sep 2018 17:20:18 -0400 (EDT) Subject: Re: Why my query not using index to sort? To: Arup Rakshit Cc: Andreas Kretschmer , pgsql-general@lists.postgresql.org References: <20311.1538141875@sss.pgh.pa.us> <97DDEE09-FE33-43DB-A451-665F3535B5BA@zeit.io> <40D9D4B8-7D62-4E6E-B6E9-3F83DACA2D45@zeit.io> <61708e66-dcc6-6490-b876-979eff8c3efd@a-kretschmer.de> <05A26EE2-964C-4F53-8DB5-CD86D3D46D86@zeit.io> <2c10559c-21fa-bb73-3814-cec5583ddb6c@aklaver.com> <327CBA05-3910-416D-B1E0-175C44A256AE@zeit.io> <2be603be-1506-5a3d-c086-1fdd11d83bd3@aklaver.com> <13BB58F6-A4D6-475A-A71A-F6B4CF780644@zeit.io> <761996F5-EF2E-48C9-A250-B41A63239E01@zeit.io> From: Adrian Klaver Message-ID: Date: Fri, 28 Sep 2018 14:20:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <761996F5-EF2E-48C9-A250-B41A63239E01@zeit.io> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/28/18 12:14 PM, Arup Rakshit wrote: > Forgot to mention in my previous email, it was a quick send click. Sorry > for that. > > In the gist you need to see all the line with Vessel Load(.. . I load > the page multiple times to catch the different times, so you will the > line multiple times there in the log file. Do you know what Vessel Load () is actually measuring? To me it looks like it is covering both the query(including ROR overhead) and the HTTP request/response cycle. Also have you looked at: https://guides.rubyonrails.org/debugging_rails_applications.html#impact-of-logs-on-performance > > Thanks, > > Arup Rakshit > ar@zeit.io > -- Adrian Klaver adrian.klaver@aklaver.com