Re: Awkward Join between generate_series and long table

2023-11-09 Thread Lincoln Swaine-Moore
> I see an estimate for 1000 rows in your EXPLAIN output too, so you're experiencing the same > although in your case the estimate of 1000 might be more accurate. The misestimation was causing > significant performance problems for me. > My solution was to wrap generate_series() in a custom functi

RE: [EXTERNAL] Performance down with JDBC 42

2023-11-09 Thread Abraham, Danny
Hi guys, Thanks for the help. I was able to recreate the problem , on the same DB, with PSQL only. No JDBC. A plain run of a complicated query : 50ms A prepare and then execute of the same query: 2500ms. The plans are different, as discussed above. The fast one is using Mat

Re: Awkward Join between generate_series and long table

2023-11-09 Thread Philip Semanchuk
> On Nov 8, 2023, at 8:26 PM, Lincoln Swaine-Moore > wrote: > > Hi all-- > > I'm having a performance problem in 12.16 that I'm hoping someone can help > with. > Thanks for any and all help and suggestions. Hi Lincoln, I haven't read your SQL carefully so I may be completely off base,