Re: delete taking long time

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: delete taking long time
Дата
Msg-id 62238924.9201.1458092092795.JavaMail.open-xchange@oxweb01.ims-firmen.de
обсуждение исходный текст
Ответ на Re: delete taking long time  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-sql
> 
> Given the lack of indexes on the one table that is shown I suspect this is
> the most likely cause (FK + indexes)
> 

right, there should be an index on ts. If it is a 9.5 AND the rows are ordered
on ts a BRIN-index would be fine.
If not - a normal index. How many rows contains the table?

-- 
Andreas Kretschmer
http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: delete taking long time
Следующее
От: "Mike Sofen"
Дата:
Сообщение: Re: delete taking long time