On Tue, 23 Apr 2024 at 07:01, Олександр Янін <aleksandr.janin@xxxxxxxxxxxxx> wrote: > Try setting enable_memoize to off. > Our practice has shown that enabling this parameter by default often resulted in less than optimal query plans in the cache. It would be good to see a thread opened with details on this. I understand incorrect statistics can cause this but if there are other reasons, it would be good to know what they are. David