View Single Post

   
  #6 (permalink)  
Old 05-10-2008, 02:05 PM
Stephen Frost
 
Posts: n/a
Default Re: constraint exclusion analysis caching

* Gregory Stark (stark@enterprisedb.com) wrote:
> "Andrew Dunstan" <andrew@dunslane.net> writes:
>
> > Actual execution of the query in question was talking one tenth of that
> > time.
> >...
> > but in principle it seems silly to keep paying the same penalty over and
> > over again.

>
> I would think constraint_exclusion only really makes sense if you're spending
> a lot more time executing than planning queries. Either that means you're
> preparing queries once and then executing them many many times or you're
> planning much slower queries where planning time is insignificant compared to
> the time to execute them.


Would it be possible to change the application to use prepared queries?
Seems like that'd make more sense the changing it to use the child
tables directly.. Just my 2c.

Thanks,

Stephen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIJKPHrzgMPqB3kigRAnFcAJ9aVRL4fRX32MOpp4KwAZ 6J9YP9CQCffopQ
jaHRrFNr65Odc/4aZ0ZBMkg=
=GPOj
-----END PGP SIGNATURE-----

Reply With Quote