Re: UPDATE and DELEte with a lot of register is to slow...

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: UPDATE and DELEte with a lot of register is to slow...
Дата
Msg-id 49254A33.1000101@postnewspapers.com.au
обсуждение исходный текст
Ответ на UPDATE and DELEte with a lot of register is to slow...  ("John Dizaro" <jedsoftware@gmail.com>)
Список pgsql-sql
John Dizaro wrote:
> I have   to execute some times an UPDATE  an some times a DELETE  to
> register +- 50000  , every time when i do that  the database  be  to slow
> do we any way to DELETE or UPDATE by part???

I'm not sure your post really contains enough information to answer your 
question.

If you are having problems with slow DELETEs, could it be a problem with 
a foreign key that lacks an index on the referencing (rather than 
referenced) column?

What do you mean by "to register 50000" ? Do you mean "affecting 50,000 
rows" ?

Just how slow do you mean? Is the problem that the UPDATE or DELETE 
takes a long time, or that it slows down other queries?

--
Craig Ringer


В списке pgsql-sql по дате отправления:

Предыдущее
От: "John Dizaro"
Дата:
Сообщение: UPDATE and DELEte with a lot of register is to slow...
Следующее
От: Frank Bax
Дата:
Сообщение: Re: [GENERAL] date range query help