pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: pgsql-odbc@lists.postgresql.org
Subject: Re: about pgsql odbc insertion efficiency is very low
Date: Thu, 28 Nov 2019 09:37:12 +0100
Message-ID: <d0f06d2d-d80b-e561-49d9-b1206b44c084@ladisch.de> (raw)
In-Reply-To: <tencent_387CB4259BAD638D9B38BBE112B98DD3D10A@qq.com>
References: <tencent_387CB4259BAD638D9B38BBE112B98DD3D10A@qq.com>

HIT . man wrote:
> When I use remote PostgreSQL ODBC to insert 10 million pieces of data from the client to the server, the speed is 130 minutes.

Are you using a prepared statement?
How large are your transactions?

The fastest way to bulk load data is with COPY, which is not supported in ODBC.
To avoid network round trips, you could submit multi-row INSERT commands.


Regards,
Clemens





view thread (2+ messages)

Message-ID: <d0f06d2d-d80b-e561-49d9-b1206b44c084@ladisch.de>
Permalink:  ../d0f06d2d-d80b-e561-49d9-b1206b44c084@ladisch.de/
Also on:    postgresql.org/message-id/d0f06d2d-d80b-e561-49d9-b1206b44c084@ladisch.de

 · 

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-odbc@postgresql.org
  Cc: clemens@ladisch.de
  Subject: Re: about pgsql odbc insertion efficiency is very low
  In-Reply-To: <d0f06d2d-d80b-e561-49d9-b1206b44c084@ladisch.de>
  References: <tencent_387CB4259BAD638D9B38BBE112B98DD3D10A@qq.com> <d0f06d2d-d80b-e561-49d9-b1206b44c084@ladisch.de>

* 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