pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
about pgsql odbc insertion efficiency is very low
2+ messages / 2 participants
[nested] [flat]

* about pgsql odbc insertion efficiency is very low
@ 2019-11-28 06:53  HIT . man <1141852259@qq.com>
  0 siblings, 1 reply; 2+ messages in thread

From: HIT . man @ 2019-11-28 06:53 UTC (permalink / raw)
  To: pgsql-odbc

Hello authors


   I'm sorry email to you may you are in busy. When using PostgreSQL ODBC, I can't improve the speed of inserting into the database.  could you give me some guidance in using postgresql odbc driver.
  The details are as follows.When I use remote PostgreSQL ODBC to insert 10 million pieces of data from the client to the server, the speed is 130 minutes. I How can I improve my speed.
  This is a screenshot of my ODBC configuration.I used PostgreSQL ODBC version 11.01 X86 .
  Could you give me some suggestions to improve the insertion performance optimization. I will be very grateful   
                                                                                                                Looking forward to hearing from you




   

Attachments:

30FECD1A@D709AA23.EE6EDF5D.jpg (image/jpeg, 11.4K) download view image
28FDD217@2B31852C.EE6EDF5D.jpg (image/jpeg, 16.2K) download view image
2CFDCD1B@B9024C6C.EE6EDF5D.jpg (image/jpeg, 13.3K) download view image
29FCD417@1C9AD841.EE6EDF5D.jpg (image/jpeg, 9.7K) download view image
^ permalink raw reply [nested|flat] 2+ messages in thread

* Re: about pgsql odbc insertion efficiency is very low
@ 2019-11-28 08:37  Clemens Ladisch <clemens@ladisch.de>
  parent: HIT . man <1141852259@qq.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Clemens Ladisch @ 2019-11-28 08:37 UTC (permalink / raw)
  To: pgsql-odbc@lists.postgresql.org

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





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-11-28 08:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-11-28 06:53 about pgsql odbc insertion efficiency is very low HIT . man <1141852259@qq.com>
2019-11-28 08:37 ` Clemens Ladisch <clemens@ladisch.de>

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