Re: Does writing new records while massive update will generate lock ?

From: Alban Hertroys <haramrae(at)gmail(dot)com>
To: "Victor d'Agostino" <victor(dot)d(dot)agostino(at)fiducial(dot)net>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Does writing new records while massive update will generate lock ?
Date: 2014-08-21 15:00:02
Message-ID: CAF-3MvOGPxYbe71o+Esn-TVuSwnHjvoaGUO=ySrqwx2en1-FTg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 21 August 2014 15:41, Victor d'Agostino <victor(dot)d(dot)agostino(at)fiducial(dot)net>
wrote:

> I'm updating this column (for more than 48 hours now) on a RAID5 server.
>

RAID5? That's probably the worst performing RAID configuration you can have
and is usually advised against on this list.
You would be better off with RAID 10, RAID 1+0 or even RAID 1, but you
would be using more disk space.

That said, if your IO is not being saturated by that query, you could split
the update across multiple CPU's by dividing up the email_id's over
multiple queries that you run from a session each.

--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Kehlet 2014-08-21 20:44:15 hot_standby_feedback vs. max_standby_archive_delay/max_standby_streaming_delay?
Previous Message Raymond O'Donnell 2014-08-21 14:48:24 Re: Does writing new records while massive update will generate lock ?