Re: Very slow joins

Поиск
Список
Период
Сортировка
От MS
Тема Re: Very slow joins
Дата
Msg-id d1855c3a-63a6-4e51-81eb-6ae9711043c1@y7g2000yqa.googlegroups.com
обсуждение исходный текст
Ответ на Re: Very slow joins  (MS <fretka1990@gmail.com>)
Ответы Re: Very slow joins
Re: Very slow joins
Список pgsql-general
> can we see an explain analyze at least?
>

Hi,
Well, it won't be necessary - I mean it looks just like the explain I
sent in my first post.
BUT I found the real cause of my problem - the "fk2" field from my
example had not only an index, but it was also a foreign key to
another table.
I believe the update took so long because pgsql was checking if the
changes don't break the referential integrity.
When I dropped the FK constraint (and index too - just in case) the
update took around 3 minutes which is acceptable.
So - problem solved, postgres good. ;) But isn't there a way to make
some bulk operations without having to drop indexes/FKs?
Something that would work like:

begin transaction + forget about RI
make some lenghty operation (update/delete...)
if RI is OK then commit; else rollback

Thanks,
MS

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

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: Disable databse listing for non-superuser (\l) ?
Следующее
От: Nick Boutelier
Дата:
Сообщение: Is there a RECORD[] type in plpgsql?