| От | Pierre C |
|---|---|
| Тема | Re: SELECT INTO large FKyed table is slow |
| Дата | |
| Msg-id | op.vm0fb7z4eorkce@apollo13 обсуждение |
| Ответ на | Re: SELECT INTO large FKyed table is slow (Mario Splivalo <mario.splivalo@megafon.hr>) |
| Ответы |
Re: SELECT INTO large FKyed table is slow
|
| Список | pgsql-performance |
> Now I tried removing the constraints from the history table (including > the PK) and the inserts were fast. After few 'rounds' of inserts I added > constraints back, and several round after that were fast again. But then > all the same. Insert of some 11k rows took 4 seconds (with all > constraints) and now the last one of only 4k rows took one minute. I did > vacuum after each insert. > > > Mario Hm, so for each line of drones_history you insert, you also update the correspoding drones table to reflect the latest data, right ? How many times is the same row in "drones" updated ? ie, if you insert N rows in drones_nistory, how may drone_id's do you have ?
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера