Re: [INTERFACES] ODBC Performance

From: "Brett W(dot) McCoy" <bmccoy(at)lan2wan(dot)com>
To: Ming-Hung Eng <mheng(at)hachette-multimedia(dot)fr>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] ODBC Performance
Date: 1999-07-13 18:46:38
Message-ID: Pine.BSI.3.91.990713132118.21015E-100000@access1.lan2wan.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Tue, 13 Jul 1999, Ming-Hung Eng wrote:

> I want to copy a content of a Access table to a Postgres attached table via
> ODBC.
> There are 104000 entries.
>
> The problem is the operation take more than 3 hours !!!
>
> Do someone know why and what's wrong for me.

I've found for bulk copying like that, going through ODBC is terribly
efficient. You might be better off dumong your Access table to some sort
of text-delimited file and using the COPY command in pgsql. It is far
faster.

Als, check to see if you have the fsync option in use. For bulk copying,
you will want to turn off the fsync funciton, since it slows down disk
operations. Turn it back on, though, if you want to do transactional
work or you could lose data if your server crashes.

Brett W. McCoy
http://www.lan2wan.com/~bmccoy
-----------------------------------------------------------------------
If you've seen one redwood, you've seen them all.
-- Ronald Reagan

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Peter T Mount 1999-07-13 18:48:57 RE: [INTERFACES] JDBC connection problem while trying example.bas ic
Previous Message Emanuele 1999-07-13 18:34:46 Re: [INTERFACES] jdbc redhat 6.0 NoClassDefFoundError