Re: Bad performance with cascaded deletes

Поиск
Список
Период
Сортировка
От Don Seiler
Тема Re: Bad performance with cascaded deletes
Дата
Msg-id CAHJZqBCvqmq7o3wYOxNdxpn2DG9QxaLe_=JKMwCmq1DQNNAGrA@mail.gmail.com
обсуждение исходный текст
Ответ на Bad performance with cascaded deletes  (Haug Bürger <haug.buerger@zalando.de>)
Ответы Re: Bad performance with cascaded deletes
Список pgsql-general
On Tue, Jun 12, 2018 at 2:26 AM, Haug Bürger <haug.buerger@zalando.de> wrote:

    "availability_cache_ac_session_id_fkey" FOREIGN KEY (ac_session_id)
REFERENCES zpg_data.session(id) ON DELETE CASCADE


Do you have an index on availability_cache.ac_session_id? These fields are not automatically indexed and that can lead to horrible performance on cascading operations like this.

--
Don Seiler
www.seiler.us

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

Предыдущее
От: Ravi Krishna
Дата:
Сообщение: PG on AWS RDS and IAM authentication
Следующее
От: Don Seiler
Дата:
Сообщение: Re: Bad performance with cascaded deletes