Re: [PERFORM] Improving SQL performance

2007-01-11 Thread Tom Lane
"Carlos H. Reimer" <[EMAIL PROTECTED]> writes: > I know that the problem with the following SQL is the "LOG.CODCEP = > ENDE.CODCEP||CODLOG" condition, but what can I > do to improve the performance? Seems the problem is not using an index for tt_log. Do you have an index on tt_log.codcep? If so,

Re: [PERFORM] Improving SQL performance

2007-01-11 Thread Russell Smith
Carlos H. Reimer wrote: Hi, I know that the problem with the following SQL is the "LOG.CODCEP = ENDE.CODCEP||CODLOG" condition, but what can I do to improve the performance? I wouldn't say it's the join condition. There is a nested loop join on 500k+ rows. Is it possible to put an index