For queries of the type:
select * from a where col1 = ? or col2 = ?
and good indexes exist on col1 and col2 it would be optimal if derby could execute a plan that
did an index scan first on the col1 index and then an index scan on col2 index.
Currently it looks like derby will do a full index scan if col1 and col2 are in any index, or a full table