| От | Andrus |
|---|---|
| Тема | Re: how to speed up query |
| Дата | |
| Msg-id | f4r9so$6oi$1@news.hub.org обсуждение исходный текст |
| Ответ на | Re: how to speed up query (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
>> and script terminates after 5.5 hours running yesterday night. > > This might be a good reason not to run the script as a single long > transaction --- it's probably accumulating locks on a lot of different > tables. Which would be fine if it was the only thing going on, but > evidently it isn't. Thank you. I removed transaction from script as all. I send every statement separately to Postgres. So each statement runs in its own single transaction now. I hope that this does not decrease speed and this is best solution? Now explain analyze SELECT r.dokumnr FROM rid r LEFT JOIN dok d USING (dokumnr) WHERE d.dokumnr IS NULL returs the same time from script and when returned separately in small database. Andrus.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера