Subject Re: [firebird-support] LEFT OUTER JOIN speed on a simple query
Author Michael Ludwig
SoftTech schrieb am 13.05.2010 um 10:27:29 (-0500):

> Simply changing the LEFT OUTER JOIN to a JOIN is instant. The issue is
> there are 203 addresses in the ADDRESS database that do not have the
> ZIP_CODE_ID set.
>
> Any ideas on how to speed this query up when using the LEFT OUTER JOIN?

What happens when you do the following:

INSERT INTO ZIP_CODE VALUES ( -1, '-' );

UPDATE ADDRESS
SET ZIP_CODE_ID = -1
WHERE ZIP_CODE_ID IS NULL;

And then reexecute your query?
--
Michael Ludwig