O.K. cool....glad to see Karl got it right (he's pretty good with that
optimizer stuff

).
If it's still causing a problem, you might want to create an issue and
have one of the SE guys look into it.
Steve
-----Original Message-----
From: Martin Bowes [mailto:martin.bowes (AT) ctsu (DOT) ox.ac.uk]
Sent: Tuesday, August 04, 2009 9:52 PM
To: Ingres and related product discussion forum
Cc: Stephen Ball
Subject: RE: [Info-Ingres] not in vs outer join syntax as a table
expands
Hi Stevo,
Karl nailed it with the nullable column. I tried varying levels of stats
from none to maximum buckets and other than getting better estimates the
query plans didn't change.
Marty
-----Original Message-----
From: info-ingres-bounces (AT) kettleriver...ting (DOT) com
[mailto:info-ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of
Ingres Forums
Sent: 04 August 2009 05:21
To: info-ingres (AT) kettleriverconsulting (DOT) com
Subject: Re: [Info-Ingres] not in vs outer join syntax as a table
expands
Marty,
This one is a good question for Doug (who is on vacation until
mid-august).
Ingres does actually make an attempt to flatten "not ion" sub-selects
to outer joins if it can, but it's not 100% effective. Interestingly
enough, the estimated total tuples for the two plans below are almost
identical, I suspect the optimizer thinks both plans cost approximately
the same amount and as the data size and distribution changed it decided
on one plan over the other. Have you run optimizedb on the tables
recently? Maybe a finer granularity on the histogram might produce a
better result.
--
stephenb
------------------------------------------------------------------------
stephenb's Profile:
http://community.ingres.com/forum/member.php?userid=175
View this thread:
http://community.ingres.com/forum/sh...ad.php?t=10995
_______________________________________________
Info-Ingres mailing list
Info-Ingres (AT) kettleriverconsulting (DOT) com
http://www.kettleriverconsulting.com...fo/info-ingres