Re: LIMIT OFFSET with DB view vs plain SQL

2019-04-01 Thread Raj Gandhi
response_body text > ) > as $$ > > > Query example: > > select * from foo(100, 50); > > > On Apr 1, 2019, at 9:56 AM, Raj Gandhi wrote: > > Any other idea how to resolve the performance issue with the database view? > > On Fri, Mar 29, 2019 at 7:38 PM Ra

Re: LIMIT OFFSET with DB view vs plain SQL

2019-04-01 Thread Raj Gandhi
Any other idea how to resolve the performance issue with the database view? On Fri, Mar 29, 2019 at 7:38 PM Raj Gandhi wrote: > Merlin, I tried the hack you suggested but that didn't work. Planner used > the same path. > > The same query works much faster when using the raw S

Re: LIMIT OFFSET with DB view vs plain SQL

2019-03-29 Thread Raj Gandhi
8, 2019 at 5:44 PM Raj Gandhi wrote: > > > > + pgsql-performance > > > > On Thu, Mar 28, 2019 at 6:41 PM Raj Gandhi > wrote: > >> > >> Hi everyone, > >> > >> > >> > >> I’m using LIMIT offset with DB view. Looks like que

Re: LIMIT OFFSET with DB view vs plain SQL

2019-03-28 Thread Raj Gandhi
+ pgsql-performance On Thu, Mar 28, 2019 at 6:41 PM Raj Gandhi wrote: > Hi everyone, > > > > I’m using LIMIT offset with DB view. Looks like query planner is applying > the LIMIT for DB view at the end after processing all rows. > > When running same SQL that was us