Query execution slow for the first time...
640901Aug 28 2008 — edited Aug 28 2008I am new to Oracle sql.
I have a query whose performance is very slow for the first time, but on subsequent executions its fast. When executed for the first time it is taking around 45 seconds and on subsequent executions, 600 milliseconds.
Is there a specific reason for this to happen. I am calling this query from my java code using a prepare statement.