pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Emi Lu <emilu@encs.concordia.ca>
To: pgsql-performance@postgresql.org
Subject: autocommit (true/false) for more than 1 million records
Date: Fri, 22 Aug 2014 16:49:56 -0400
Message-ID: <53F7ACF4.1010604@encs.concordia.ca> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Hello,

Trying to insert into one table with 1 million records through java JDBC 
into psql8.3. May I know (1) or (2) is better please?

(1) set autocommit(true)
(2) set autocommit(false)
      commit every n records (e.g., 100, 500, 1000, etc)

Thanks a lot!
Emi




-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (20+ messages)  latest in thread

Message-ID: <53F7ACF4.1010604@encs.concordia.ca>
Permalink:  ../53F7ACF4.1010604@encs.concordia.ca/
Also on:    postgresql.org/message-id/53F7ACF4.1010604@encs.concordia.ca

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: emilu@encs.concordia.ca
  Subject: Re: autocommit (true/false) for more than 1 million records
  In-Reply-To: <53F7ACF4.1010604@encs.concordia.ca>

* 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