Re: trying to delete most of the table by range of date col
В списке pgsql-performance по дате отправления:
| От | Justin Pryzby |
|---|---|
| Тема | Re: trying to delete most of the table by range of date col |
| Дата | |
| Msg-id | 20180903092300.GC11702@telsasoft.com обсуждение исходный текст |
| Ответ на | Re: trying to delete most of the table by range of date col (Mariel Cherkassky <mariel.cherkassky@gmail.com>) |
| Ответы |
Re: trying to delete most of the table by range of date col
|
| Список | pgsql-performance |
On Mon, Sep 03, 2018 at 11:17:58AM +0300, Mariel Cherkassky wrote: > Hi, > I already checked and on all the tables that uses the id col of the main > table as a foreign key have index on that column. > > So, it seems that the second solution is the fastest one. It there a reason > why the delete chunks (solution 4) wasnt faster? I suggest running: SET track_io_timing=on; -- requires superuser explain(ANALYZE,BUFFERS) DELETE [...] https://wiki.postgresql.org/wiki/Slow_Query_Questions Maybe you just need larger shared_buffers ? Justin
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера