pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Arya F <arya6000@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Hardware for writing/updating 12,000,000 rows per hour
Date: Fri, 26 Jul 2019 17:39:19 -0400
Message-ID: <20190726213919.GA16850@alvherre.pgsql> (raw)
In-Reply-To: <CAFoK1ayztRr7k8ecF+m4ON4wHKD2dNZm_EnUSzSM-L4y0aQsHQ@mail.gmail.com>

On 2019-Jul-26, Arya F wrote:

> I think I can modify my application to do a batch update. Right now the
> server has an HDD and it really can't handle a lot of updates and inserts
> per second. Would changing to a regular SSD be able to easily do 3000
> updates per second?

That's a pretty hard question in isolation -- you need to consider how
many indexes are there to update, whether the updated columns are
indexed or not, what the datatypes are, how much locality of access
you'll have ... I'm probably missing some other important factors.  (Of
course, you'll have to tune various PG server settings to find your
sweet spot.)

I suggest that should be measuring instead of trying to guess.  A
reasonably cheap way is to rent a machine somewhere with the type of
hardware you think you'll need, and run your workload there for long
enough, making sure to carefully observe important metrics such as table
size, accumulated bloat, checkpoint regime, overall I/O activity, and so
on.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (11+ messages)  latest in thread

Message-ID: <20190726213919.GA16850@alvherre.pgsql>
Permalink:  ../20190726213919.GA16850@alvherre.pgsql/
Also on:    postgresql.org/message-id/20190726213919.GA16850@alvherre.pgsql

 · 

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: alvherre@2ndquadrant.com, arya6000@gmail.com, tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com
  Subject: Re: Hardware for writing/updating 12,000,000 rows per hour
  In-Reply-To: <20190726213919.GA16850@alvherre.pgsql>
  References: <CAFoK1ayztRr7k8ecF+m4ON4wHKD2dNZm_EnUSzSM-L4y0aQsHQ@mail.gmail.com> <20190726213919.GA16850@alvherre.pgsql>

* 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