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>
To: 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 11:47:25 -0700
Message-ID: <2c10559c-21fa-bb73-3814-cec5583ddb6c@aklaver.com> (raw)
In-Reply-To: <05A26EE2-964C-4F53-8DB5-CD86D3D46D86@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>

On 9/28/18 11:32 AM, Arup Rakshit wrote:
> Yes. But I thought I could improve it, so that it can be finished in 
> 0.xx ms. It takes now between 1.7 to 1.9 ms in production.

That is not what you showed in your first post:

Planning time: 0.178 ms
Execution time: 0.527 ms



> 
> 
> Thanks,
> 
> Arup Rakshit
> ar@zeit.io <mailto:ar@zeit.io>
> 
> 
> 
>> On 28-Sep-2018, at 9:46 PM, Andreas Kretschmer 
>> <andreas@a-kretschmer.de <mailto:andreas@a-kretschmer.de>> wrote:
>>
>>
>>
>> Am 28.09.2018 um 18:03 schrieb Arup Rakshit:
>>> Also I meatn the execution time is less than I had before with 
>>> enable_sort = off.
>>
>> yeah, but not that much. different plan.
>>
>>
>> Regards, Andreas
>>
>> -- 
>> 2ndQuadrant - The PostgreSQL Support Company.
>> www.2ndQuadrant.com <http://www.2ndQuadrant.com;
>>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (25+ messages)  latest in thread

Message-ID: <2c10559c-21fa-bb73-3814-cec5583ddb6c@aklaver.com>
Permalink:  ../2c10559c-21fa-bb73-3814-cec5583ddb6c@aklaver.com/
Also on:    postgresql.org/message-id/2c10559c-21fa-bb73-3814-cec5583ddb6c@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: <2c10559c-21fa-bb73-3814-cec5583ddb6c@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>

* 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