Re: insert

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: insert
Дата
Msg-id 1092401876.16087.236.camel@jester
обсуждение исходный текст
Ответ на Re: insert  (Ulrich Wisser <ulrich.wisser@relevanttraffic.se>)
Ответы Re: insert
Список 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 по дате отправления:

Предыдущее
От: Paul Thomas
Дата:
Сообщение: Re: insert
Следующее
От: "Arash Zaryoun"
Дата:
Сообщение: Weird Database Performance problem!