| От | Ron |
|---|---|
| Тема | Singleton SELECT inside cursor loop |
| Дата | |
| Msg-id | ee9f6dc7-281d-f2a1-2556-54d36fd96e91@gmail.com обсуждение исходный текст |
| Ответы |
Example code Re: Singleton SELECT inside cursor loop
|
| Список | pgsql-general |
AWS RDS Postgresql 12.11 It runs quickly, no matter what the fetched cursor values are, as long as the cursor returns less than 8 rows. After that, the singleton SELECT's performance tanks. We've got plenty of other procedures which have a similar "Singleton SELECT inside a cursor" design (many even query the same table that the problematic query does), but only this procedure's singleton SELECT tanks if the cursor returns more than 8 rows. It only runs once a month, so we've only just noticed the problem. Why would that be? (We recently updated from 12.10 to 12.11, if that's relevant.) -- Angular momentum makes the world go 'round.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера