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 1g6ALl-00078J-CK for pgsql-general@arkaria.postgresql.org; Sat, 29 Sep 2018 08:11:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g6ALj-000436-BT for pgsql-general@arkaria.postgresql.org; Sat, 29 Sep 2018 08:11:39 +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.89) (envelope-from ) id 1g6ALi-00042z-W2 for pgsql-general@lists.postgresql.org; Sat, 29 Sep 2018 08:11:39 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g6ALb-0005gD-MV for pgsql-general@lists.postgresql.org; Sat, 29 Sep 2018 08:11:38 +0000 Received: by mail-pf1-x430.google.com with SMTP id x26-v6so5828866pfn.4 for ; Sat, 29 Sep 2018 01:11:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zeit-io.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=Nx9a6rldzosMPlLmBAjyTzaZuwlDc209E8G36G3yn90=; b=geyjqo4yjSDHbuVPV/Y6s6mM1msb6iRVjc0ceyAhr9kVWcxPRFajbxUrQBZCFGWusZ kbzlTt0MaqhCzLEigsDRjrLuleioj26orNiJUsTYioBnkJkZyGL7G8QR9FUbhDLeflpY /m9MgeflRgGbaJpqMNbSMi078TxxmD1ADPdxB0j/SQ6nu691HOaSA37MGl5YA6CeCoOG EafSAMk83DfalkYItg7EAbj3A7L1FFn5v75ZQXTbIR80GAmAuyIFmy0XA4ILMOrBXWwm 269A7VWIwxazdSf0RH6OfQxS1yb+iTKfmPhWLkZk8z4O90/bCpvYMNnz7uPS3eDp2f79 oZFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=Nx9a6rldzosMPlLmBAjyTzaZuwlDc209E8G36G3yn90=; b=bvKbONuz2e3rMMyUd0nBt23N/u6ydin/JEPEmKemhySxqQhaeIoIUdvHhUDn0UbhxQ udorm7U0ui3rRE1hY5zwnsxg+E0QaA3OeO5eu+i6U2QzeTLpq0eRtwZ6xp0UZRVLN43L /mIS+DbGPucyGWK2e7kKFKVBOxmXjpZlOtsjmvq8EkVsJSDPgWgKv36w6h1uzj3/le2e ljN0Ge6VY5UbKiCOBBXSgQkvcfLSXavdS0b1yZsxLePnNhVqLGFTwmsPm99qjMzQjvHD lpmVVJ/7UA5Ybej1IgulWTwv8vpqwDyIfIFESbxEHXrutzmXODQ2KRZ3ayuUBJuLncP7 VY1g== X-Gm-Message-State: ABuFfognd0IeI847irS+xjaWUl47cpBkjs0Q+U6fuS+WhsqdKZ8wzoGE HMu+br3N6FMkRiDp+3tJfyO8Gh72Is4= X-Google-Smtp-Source: ACcGV63T5dn+upYwI4YzOflrF0HMPyC/B+J8CEmR/BhlQF6lBV+UanMMSFHDynSjSGInwrvhza8bJg== X-Received: by 2002:a17:902:8e8b:: with SMTP id bg11-v6mr2097099plb.219.1538208688745; Sat, 29 Sep 2018 01:11:28 -0700 (PDT) Received: from [192.168.0.100] ([45.123.160.163]) by smtp.gmail.com with ESMTPSA id z22-v6sm5925950pgv.24.2018.09.29.01.11.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Sep 2018 01:11:28 -0700 (PDT) From: Arup Rakshit Message-Id: <00B43AD2-C6BA-4429-A0F2-BA9437CEE240@zeit.io> Content-Type: multipart/alternative; boundary="Apple-Mail=_9E567FA9-5EF8-44EA-B556-BC5E1B21A8C6" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Why my query not using index to sort? Date: Sat, 29 Sep 2018 13:41:24 +0530 In-Reply-To: Cc: Andreas Kretschmer , pgsql-general@lists.postgresql.org To: Adrian Klaver 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> X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_9E567FA9-5EF8-44EA-B556-BC5E1B21A8C6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello Adrian, I used to consider this time as the sql execution time approximately. = I=E2=80=99ll do some research and get back to you. Thanks for mentioning = it. Thanks, Arup Rakshit ar@zeit.io > On 29-Sep-2018, at 2:50 AM, Adrian Klaver = wrote: >=20 > 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. >=20 > Do you know what Vessel Load () is actually measuring? >=20 > To me it looks like it is covering both the query(including ROR = overhead) and the HTTP request/response cycle. >=20 > Also have you looked at: >=20 > = https://guides.rubyonrails.org/debugging_rails_applications.html#impact-of= -logs-on-performance >=20 >> Thanks, >> Arup Rakshit >> ar@zeit.io >=20 >=20 > --=20 > Adrian Klaver > adrian.klaver@aklaver.com --Apple-Mail=_9E567FA9-5EF8-44EA-B556-BC5E1B21A8C6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Hello Adrian,


I used to consider this = time as the sql execution time approximately. I=E2=80=99ll do some = research and get back to you. Thanks for mentioning it.


Thanks,

Arup = Rakshit



On 29-Sep-2018, at 2:50 AM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:

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.htm= l#impact-of-logs-on-performance

Thanks,
Arup= Rakshit
ar@zeit.io <mailto:ar@zeit.io>


--
Adrian Klaver
adrian.klaver@aklaver.com

= --Apple-Mail=_9E567FA9-5EF8-44EA-B556-BC5E1B21A8C6--