Re: Slow query with join

From: Marc Watson <mark(dot)watson(at)jurisconcept(dot)ca>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Slow query with join
Date: 2015-03-17 18:17:44
Message-ID: 02F1BBB48ABD3245A3BC519B57CFC8CA7E9E2B69@Exchange.JurisConcept.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Update :

My query SELECT * FROM v_actor JOIN f_intervenant_ref ON (actor_id = ir_actor_id) WHERE ir_dos_id = '5226' took 7 secs.
If I substitute the _RETURN rule for the view and add the above join, it takes 31 ms.

Mark Watson
Service au client - R&D
Tél. 418 659-7272 ou 1 888 692-1050
www.jurisconcept.ca  

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2015-03-17 18:21:47 Re: Great Software Opportunities: VP, Front End Developer, etc. (Ruby, Python)
Previous Message Israel Brewster 2015-03-17 17:57:40 Re: Group by range in hour of day