pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
To: Frank Millman <frank@chagford.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: SELECT is faster on SQL Server
Date: Fri, 19 Mar 2021 16:32:05 +0100
Message-ID: <20210319163205.2b86c71d@firost> (raw)
In-Reply-To: <b4b09b66-9ad3-a8ad-3dd8-28d23a0d112c@chagford.com>
References: <d002a9e4-433c-3f44-90aa-46568db4bc00@chagford.com>
	<33b19e80-75da-a455-7e78-a01e14e4d4d6@gmx.net>
	<fbdd2bdd-1957-1b49-eeca-0278d43de71d@chagford.com>
	<CAFj8pRAU8N9hhotGhrxEcnae+tjy_CQoJA3fMYH9o58Du1SjLQ@mail.gmail.com>
	<c6befefe-a4ab-25ab-ceed-66d7d362de13@chagford.com>
	<CAFj8pRBLakshW08Har67iJcx=OnSsazqXb8CeY-k3dLUpqSrwQ@mail.gmail.com>
	<5a6f07d7-1d0f-f685-6743-d4dbc1730177@chagford.com>
	<b4b09b66-9ad3-a8ad-3dd8-28d23a0d112c@chagford.com>

On Fri, 19 Mar 2021 14:28:27 +0200
Frank Millman <frank@chagford.com> wrote:

> [...]
> Execution of my main query has improved from 50ms to 33ms. Sql Server 
> takes 25ms, but this is much better than it was.
> 
> [...]
> 
> Here is the new EXPLAIN ANALYSE -
> 
>                            QUERY PLAN
> --------------------------------------------------------------------
>   Merge Left Join  (...) (actual time=1.566..1.581 rows=5 loops=1)

1.581ms to output the very last row of this plan. This is in contradiction with
the 33ms you are referencing above.

What do I miss here? Maybe your 33ms comes yet from another set of data? Could
you share an explain analyze actually showing this 33ms total execution time?





view thread (18+ messages)  latest in thread

Message-ID: <20210319163205.2b86c71d@firost>
Permalink:  ../20210319163205.2b86c71d@firost/
Also on:    postgresql.org/message-id/20210319163205.2b86c71d@firost

 · 

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: jgdr@dalibo.com, frank@chagford.com
  Subject: Re: SELECT is faster on SQL Server
  In-Reply-To: <20210319163205.2b86c71d@firost>
  References: <d002a9e4-433c-3f44-90aa-46568db4bc00@chagford.com> <33b19e80-75da-a455-7e78-a01e14e4d4d6@gmx.net> <fbdd2bdd-1957-1b49-eeca-0278d43de71d@chagford.com> <CAFj8pRAU8N9hhotGhrxEcnae+tjy_CQoJA3fMYH9o58Du1SjLQ@mail.gmail.com> <c6befefe-a4ab-25ab-ceed-66d7d362de13@chagford.com> <CAFj8pRBLakshW08Har67iJcx=OnSsazqXb8CeY-k3dLUpqSrwQ@mail.gmail.com> <5a6f07d7-1d0f-f685-6743-d4dbc1730177@chagford.com> <b4b09b66-9ad3-a8ad-3dd8-28d23a0d112c@chagford.com> <20210319163205.2b86c71d@firost>

* 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