Re: slow delete...

Поиск
Список
Период
Сортировка
От Charles Duffy
Тема Re: slow delete...
Дата
Msg-id dfdaea8f0807040017g2ecacd48jf209d72b696b074a@mail.gmail.com
обсуждение исходный текст
Ответ на slow delete...  (Jessica Richard <rjessil@yahoo.com>)
Список pgsql-admin
> by the way, there is a foreign key on another table that references the
> primary key col0 on table test.
>

Try putting an index on the FK column in the other table. Analyse the
table. Test by starting a transaction then
issuing: explain analyze delete from test where cola = 'abc'. Should be faster.


Charles Duffy

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

Предыдущее
От: Julius Tuskenis
Дата:
Сообщение: Re: changing sequence in serial field
Следующее
От: Dev
Дата:
Сообщение: Re: Best way to limit database sizes