pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedVacuum and Materialized view refresh slow
3+ messages / 3 participants
[nested] [flat]
* Vacuum and Materialized view refresh slow
@ 2018-11-30 18:59 Vikas Sharma <shavikas@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Vikas Sharma @ 2018-11-30 18:59 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hello There,
We have postgres 9.6 with 3 slaves replicated in synchronous commit.
we recently migrated to to another cloud provider. Though we have the
same configuration for VMs and postgres, we are experiencing systemwide
slowness with writes to database.
I am more concerned about a scheduled script to vacuum and refresh two
Materialized views after every 5 minutes.
Time to refresh MV and vacuum has increased considerably and during this
time a simple insert takes 10-15 seconds which normally should take
milliseconds whereas with old provider that simple insert used to take not
more than couple of seconds during refresh time.
I have seen the vacuum and refresh MV process showing as waiting for a
{change location} sometimes for a fraction of seconds.
Could I be enlighted about what I can do to improve the performance to make
write faster.
Best regards
Vikas
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Vacuum and Materialized view refresh slow
@ 2018-11-30 20:53 Rene Romero Benavides <rene.romero.b@gmail.com>
parent: Vikas Sharma <shavikas@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Rene Romero Benavides @ 2018-11-30 20:53 UTC (permalink / raw)
To: shavikas@gmail.com; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Have you benchmarked the new infrastructure's IO and network performance?
why did you switch providers? was it because of cost?
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Vacuum and Materialized view refresh slow
@ 2018-11-30 21:00 Rob Sargent <robjsargent@gmail.com>
parent: Rene Romero Benavides <rene.romero.b@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Rob Sargent @ 2018-11-30 21:00 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 11/30/18 1:53 PM, Rene Romero Benavides wrote:
> Have you benchmarked the new infrastructure's IO and network
> performance? why did you switch providers? was it because of cost?
And have you proven to yourself that all the indices are in place, stats
are up-to-date? You didn't by any chance migrate away from SSD?
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-11-30 21:00 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-11-30 18:59 Vacuum and Materialized view refresh slow Vikas Sharma <shavikas@gmail.com>
2018-11-30 20:53 ` Rene Romero Benavides <rene.romero.b@gmail.com>
2018-11-30 21:00 ` Rob Sargent <robjsargent@gmail.com>
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