Re: MS-server <-> Ppostgresql

From: Felipe Schnack <felipes(at)ritterdosreis(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: MS-server <-> Ppostgresql
Date: 2002-11-21 12:49:37
Message-ID: 1037882977.30862.59.camel@desenv1.ritterdosreis.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Why copy is faster? You can do everything in a transaction turning off
autocommit...

On Thu, 2002-11-21 at 10:46, Shridhar Daithankar wrote:
> On 21 Nov 2002 at 13:35, Francois Sauterey wrote:
>
> > I plan to extract/copy about 120.000 lines from a MS SQL 7 server database
> > (on a NT machione) to a postresql database on a Linux machine (debian/woody).
> > But what a pity : I obtain (after so many tests, so many compilation with
> > so many different options) a copy of about 1200 lines/minute ;~{
> > And horror, I plan to make the same thing whith a 3.000.000 lines database.
> > Any idea ?
>
> Yes.. Copy inside a transaction. Put something like 10000 lines in a
> transaction and then commit. See what speed difference that would make.
>
> If possible use copy. That's fastest. It would insert all of them in one
> transaction..
>
> HTH
>
> Bye
> Shridhar
>
> --
> Battle, n.: A method of untying with the teeth a political knot that will not
> yield to the tongue. -- Ambrose Bierce
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
--

Felipe Schnack
Analista de Sistemas
felipes(at)ritterdosreis(dot)br
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
felipes(at)ritterdosreis(dot)br
Fone/Fax.: (51)32303328

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shridhar Daithankar 2002-11-21 12:59:12 Re: MS-server <-> Ppostgresql
Previous Message Shridhar Daithankar 2002-11-21 12:46:53 Re: MS-server <-> Ppostgresql