pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: aditya desai <admad123@gmail.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: Pgsql Performance <pgsql-performance@lists.postgresql.org>
Subject: Re: SELECT Query taking 200 ms on PostgreSQL compared to 4 ms on Oracle after migration.
Date: Sat, 3 Apr 2021 11:24:02 -0400
Message-ID: <20210403152402.GA8049@momjian.us> (raw)
In-Reply-To: <20210403151201.GD29125@momjian.us>
References: <CAN0SRDFV=Fv0zXHCGbh7gh=MTfw05Xd1x7gjJrZs5qn-TEphOw@mail.gmail.com>
	<CAFj8pRDycZjBLBaEkUcY4B01PS=ojoaBgQnzJaqBROTn8KM7Bg@mail.gmail.com>
	<20210403141651.GI6592@telsasoft.com>
	<CAN0SRDF6ZzxV-+OdgP6B+Zg0TmhrYFSOd3kK8GC5mkfo1icEGQ@mail.gmail.com>
	<20210403151201.GD29125@momjian.us>

On Sat, Apr  3, 2021 at 11:12:01AM -0400, Bruce Momjian wrote:
> On Sat, Apr  3, 2021 at 08:38:18PM +0530, aditya desai wrote:
> > Hi Justin,
> > Yes, force_parallel_mode is on. Should we set it off?
> 
> Yes.  I bet someone set it without reading our docs:
> 
> 	https://www.postgresql.org/docs/13/runtime-config-query.html#RUNTIME-CONFIG-QUERY-OTHER
> 
> -->	Allows the use of parallel queries for testing purposes even in cases
> -->	where no performance benefit is expected.
> 
> We might need to clarify this sentence to be clearer it is _only_ for
> testing.  Also, I suggest you review _all_ changes that have been made
> to the server since I am worried other unwise changes might also have
> been made.

This brings up an issue we see occasionally.  You can either leave
everything as default, get advice on which defaults to change, or study
each setting and then change defaults.  Changing defaults without study
often leads to poor configurations, as we are seeing here.

The lucky thing is that you noticed a slow query and found the
misconfiguration, but I am sure there are many servers where
misconfiguration is never detected.  I wish I knew how to improve this
situation, but user education seems to be all we can do.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.






view thread (14+ messages)  latest in thread

Message-ID: <20210403152402.GA8049@momjian.us>
Permalink:  ../20210403152402.GA8049@momjian.us/
Also on:    postgresql.org/message-id/20210403152402.GA8049@momjian.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: bruce@momjian.us, admad123@gmail.com, pryzby@telsasoft.com, pgsql-performance@lists.postgresql.org
  Subject: Re: SELECT Query taking 200 ms on PostgreSQL compared to 4 ms on Oracle after migration.
  In-Reply-To: <20210403152402.GA8049@momjian.us>

* 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