Re: SELECT is immediate but the UPDATE takes forever

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: SELECT is immediate but the UPDATE takes forever
Дата
Msg-id 0D381ED2-D380-434B-B91B-5FC16E01FB77@solfertje.student.utwente.nl
обсуждение исходный текст
Ответ на Re: SELECT is immediate but the UPDATE takes forever  (Michał Roszka <mike@if-then-else.pl>)
Список pgsql-general
On 7 Dec 2010, at 15:45, Michał Roszka wrote:
>> but the same SELECT count, it's immediate:
>>
>> SELECT count(id) FROM comptes WHERE codi_compte LIKE '10000%' AND
>> empresa_id=2 AND nivell=11;
>
> Maybe there is any check or constraint on belongs_to_compte_id.comptes that
> might take longer?


Or a foreign key constraint or an update trigger, to name a few other possibilities.

Alban Hertroys

--
Screwing up is an excellent way to attach something to the ceiling.


!DSPAM:737,4cfe7af5802659106873227!



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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Do we want SYNONYMS?
Следующее
От: Kobi Biton
Дата:
Сообщение: Re: *****SPAM***** Re: if-clause to an exiting statement