Re: insert - Mailing list pgsql-performance

From Rod Taylor
Subject Re: insert
Date
Msg-id 1092401876.16087.236.camel@jester
Whole thread Raw
In response to Re: insert  (Ulrich Wisser <ulrich.wisser@relevanttraffic.se>)
Responses Re: insert
List pgsql-performance
On Fri, 2004-08-13 at 08:10, Ulrich Wisser wrote:
> Hi,
>
> my inserts are done in one transaction, but due to some foreign key
> constraints and five indexes sometimes the 100 inserts will take more
> than 5 minutes.

It is likely that you are missing an index on one of those foreign key'd
items.

Do an EXPLAIN ANALYZE SELECT * FROM foreign_table WHERE foreign_col =
'<insert value>';

Fix them until they're quick.



pgsql-performance by date:

Previous
From: Paul Thomas
Date:
Subject: Re: insert
Next
From: "Arash Zaryoun"
Date:
Subject: Weird Database Performance problem!