Re: [PERFORM] Strange performance problem with query

2014-09-15 Thread Van Der Berg, Stefan
nd Regards Stefan Cell : 072-380-1479 Desk : 087-577-7241 On 2014/09/15 03:25 PM, Kevin Grittner wrote: > "Van Der Berg, Stefan" wrote: > >> I get a similar plan selected on the original query if I set >> enable_seqscan to off. I much prefer the second result. >> M

[PERFORM] Strange performance problem with query

2014-09-15 Thread Van Der Berg, Stefan
Hi All, Please see the output from the following query analysis : =# explain analyze select count(1) from jbpmprocess.jbpm_taskinstance ti join jbpmprocess.jbpm_task task on (ti.task_ = task.id_ ) join jbpmprocess.jbpm_processinstance pi on ti.procinst_ = pi.id_ where ti.isopen_ = true; QUERY P