Re: Improving PostgreSQL insert performance

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
Cc: Frits Jalvingh <jal(at)etc(dot)to>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Improving PostgreSQL insert performance
Date: 2017-06-11 12:36:48
Message-ID: 20170611123648.6hvwifreuyrmu2my@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Vladimir Sitnikov wrote:
> Alvaro>Something like
> INSERT INTO .. VALUES ('col1', 'col2'), ('col1', 'col2'), ('col1', 'col2')>I
> did not
> Frits>try that, to be honest.
>
> pgjdbc does automatically rewrite insert values(); into insert ...
> values(),(),(),() when reWriteBatchedInserts=true. I don't expect manual
> multivalues to be noticeably faster there.

Ahh, so that's what that option does :-) Nice to know -- great feature.

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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Jeff Janes 2017-06-12 17:27:58 Re: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64
Previous Message Vladimir Sitnikov 2017-06-11 09:30:29 Re: Improving PostgreSQL insert performance