Hello, Witold:

thanks for your response. It might be the same issue and I will try to follow the same suggestions that Bryan gave you.

FYI: I am using Derby

If any of the Derby folks can shed some additional light onto this, it would be greatly appreciated,


From: Witold Szczerba <pljosh.mail@gmail.com>
To: Derby Discussion <derby-user@db.apache.org>
Date: 01/05/2011 01:37 PM
Subject: Re: Left-Join extremely slow in comparison to Inner-Join. How to tune Derby?

Hi there,
Look at this:
Do you think it might be the same case I had some time ago?
There were some changes in the code in Jun/2010, maybe you have older
version or the change did not resolved the problem...

The funny thing is that the Apache Derby guys changed the issue type
from bug to improvement - so, for them, a query which should last 2 or
3 seconds is executing like 1 hour, fetching entire database, is just
a 'feature' :/

Witold Szczerba

Jefferies archives and monitors outgoing and incoming e-mail. The contents of this email, including any attachments, are confidential to the ordinary user of the email address to which it was addressed. If you are not the addressee of this email you may not copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. This email may be produced at the request of regulators or in connection with civil litigation. Jefferies accepts no liability for any errors or omissions arising as a result of transmission. Use by other than intended recipients is prohibited.  In the United Kingdom, Jefferies operates as Jefferies International Limited; registered in England: no. 1978621; registered office: Vintners Place, 68 Upper Thames Street, London EC4V 3BJ.  Jefferies International Limited is authorised and regulated by the Financial Services Authority.