Re: slow INSERTS :(( - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: slow INSERTS :((
Date
Msg-id 20020617002231.B27234@svana.org
Whole thread Raw
In response to slow INSERTS :((  (Varun Kacholia <varunk@cse.iitb.ac.in>)
List pgsql-general
On Sun, Jun 16, 2002 at 07:21:12PM +0530, Varun Kacholia wrote:
>  hi ,
>   I have migrated from MySql to PostgreSQL and i find that inserts are
>   extremly slow.The things which used to be done in 10-15 mins in mysql
>   take 1.5 hrs in pgsql(though i expected double or triple the time but
>   not 8 times...omg).
>   I am using pgsql-7.1 with Redhat linux 7.2
>   Tips to increase and improve performace would be appriciated.

Are you using transactions? Putting it all in one transaction should speed
it up considerably.

begin;
inserts...
commit;

Otherwise, shows us the explain for the query.
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> There are 10 kinds of people in the world, those that can do binary
> arithmetic and those that can't.

pgsql-general by date:

Previous
From: Varun Kacholia
Date:
Subject: slow INSERTS :((
Next
From: Francisco Reyes
Date:
Subject: Re: jobs.postgresql.org - Who's interested?