I think it would be faster yes.
Gh.., March 22, 2017 - 6:02 pm UTC
I can guess ans not surprised if instr faster.
If the first query run full table scan because for example the selectivity make the optimiser not tu use thé index . I doubt that the index is used in 1st qry.
As for the 2nd one where the instr is used but in same time the the first key of the composite is the Date so oracle estimated using the index on behalf of that logic.
So the 2nd is surely faster as the index is engaged which is not the case of the 1st one.
March 23, 2017 - 3:46 am UTC
We can guess...but we'll wait until we see the plans.