pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Arup Rakshit <ar@zeit.io>
Cc: Andreas Kretschmer <andreas@a-kretschmer.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Why my query not using index to sort?
Date: Fri, 28 Sep 2018 14:20:18 -0700
Message-ID: <f0d3bd39-f40b-c3da-8ce3-bd060e46c366@aklaver.com> (raw)
In-Reply-To: <761996F5-EF2E-48C9-A250-B41A63239E01@zeit.io>
References: <D973243A-5DDC-4B20-A1DF-A0C14A487D2A@zeit.io>
	<20311.1538141875@sss.pgh.pa.us>
	<97DDEE09-FE33-43DB-A451-665F3535B5BA@zeit.io>
	<e737e767-6e89-3c37-e86f-c82e13855a51@a-kretschmer.de>
	<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>

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 <mailto:ar@zeit.io>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (25+ messages)  latest in thread

Message-ID: <f0d3bd39-f40b-c3da-8ce3-bd060e46c366@aklaver.com>
Permalink:  ../f0d3bd39-f40b-c3da-8ce3-bd060e46c366@aklaver.com/
Also on:    postgresql.org/message-id/f0d3bd39-f40b-c3da-8ce3-bd060e46c366@aklaver.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ar@zeit.io, andreas@a-kretschmer.de
  Subject: Re: Why my query not using index to sort?
  In-Reply-To: <f0d3bd39-f40b-c3da-8ce3-bd060e46c366@aklaver.com>
  References: <D973243A-5DDC-4B20-A1DF-A0C14A487D2A@zeit.io> <20311.1538141875@sss.pgh.pa.us> <97DDEE09-FE33-43DB-A451-665F3535B5BA@zeit.io> <e737e767-6e89-3c37-e86f-c82e13855a51@a-kretschmer.de> <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> <f0d3bd39-f40b-c3da-8ce3-bd060e46c366@aklaver.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