One thing I don't understand is when I run the same delete statement with the Bind Variable ( different values) in Toad or sqlplus, the delete's are quick and the index is being used. But from the application it takes > 20-30 seconds . I asked the developer if the datatype of the bind variable was same as the indexed column and he confirmed it. Is there something we need to check in the application code.
05-22-2013, 03:14 PM
When executing from SQLPlus... are you actually using a bind variable or are you using a literal? e.g. the actual value?