pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Shaburov <shab2@mail.ru>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Long running query in new production, not so long in old
Date: Thu, 28 Mar 2019 10:45:07 +0300
Message-ID: <3a10c247-e1ae-a5c4-ecc1-a46f63eb448f@mail.ru> (raw)
In-Reply-To: <CADyzmyy9afP526per2wRO6PBn=uqZe6jtpsRLyiFE5CG4PoQiA@mail.gmail.com>
References: <CADyzmyy9afP526per2wRO6PBn=uqZe6jtpsRLyiFE5CG4PoQiA@mail.gmail.com>

Hi!

Make the same shared buffer value for example. Disable any activity 
except you client query. Make query twice. Second one should be during 
about < 1 min.

If not, so it isnt problem shared buffer. My be processor count. If 
query will be faster, so in real situation you have any activity on db, 
that take away buffers from using query.

Alex
28.03.2019 1:27, Mark Steben пишет:
> Good evening
>
> We are moving to a new VM environment (expedient) and have one 
> query  that typically runs in 22 - 25 seconds in our old environment, 
> but is running in about 1 hour, 20 minutes in our new.  I'd like some 
> insight as to why the explain is showing shared buffer hits numbering 
> over 113 milliion
> in the new environment and only 445 thousand in the old. I have sent 
> the explains along with the table descriptions, row counts, the one 
> function that I know causes the bottleneck,  the query, some relevant 
> configuration settings in postgresql conf (identical in both environments)
> and a listing from top in both environments, showing memory, shared 
> memory, and cpu.
>
> Everything seems to be identical or close, except for the shared 
> buffer count in the explain.
> Any insight would be appreciated.
>
> Thank you,
>
>
> -- 
> *Mark Steben*
>  Database Administrator
> @utoRevenue <http://www.autorevenue.com/; | Autobase 
> <http://www.autobase.net/;
> CRM division of Dominion Dealer Solutions
> 95D Ashley Ave.
> West Springfield, MA 01089
> t: 413.327-3045
> f: 413.383-9567
>
> www.fb.com/DominionDealerSolutions 
> <http://www.fb.com/DominionDealerSolutions;
> www.twitter.com/DominionDealer <http://www.twitter.com/DominionDealer;
> www.drivedominion.com <http://www.autorevenue.com/;
>
>
>
>
>

view thread (6+ messages)  latest in thread

Message-ID: <3a10c247-e1ae-a5c4-ecc1-a46f63eb448f@mail.ru>
Permalink:  ../3a10c247-e1ae-a5c4-ecc1-a46f63eb448f@mail.ru/
Also on:    postgresql.org/message-id/3a10c247-e1ae-a5c4-ecc1-a46f63eb448f@mail.ru

 · 

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-admin@postgresql.org
  Cc: shab2@mail.ru, pgsql-admin@lists.postgresql.org
  Subject: Re: Long running query in new production, not so long in old
  In-Reply-To: <3a10c247-e1ae-a5c4-ecc1-a46f63eb448f@mail.ru>

* 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