Writing 1100 rows per second

From: Arya F <arya6000(at)gmail(dot)com>
To: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Writing 1100 rows per second
Date: 2020-02-05 17:03:52
Message-ID: CAFoK1aztep-079Fxmaos6umR8X6m3x1K_aZLGtQGpYxfENh9=A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

I'm looking to write about 1100 rows per second to tables up to 100 million
rows. I'm trying to come up with a design that I can do all the writes to a
database with no indexes. When having indexes the write performance slows
down dramatically after the table gets bigger than 30 million rows.

I was thinking of having a server dedicated for all the writes and have
another server for reads that has indexes and use logical replication to
update the read only server.

Would that work? Or any recommendations how I can achieve good performance
for a lot of writes?

Thank you

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Laurenz Albe 2020-02-05 17:12:34 Re: Writing 1100 rows per second
Previous Message Tom Lane 2020-02-03 21:10:20 Re: Slow performance with trivial self-joins