SQL queries dont use indexes the first time its executed in 3-tier via application server
The queries perform fine in 2-tier and use the right indexes.. When executed via application in 3 tier (web/app/db), the queries dont use the index the first time but start using it afterwards.
Can you please let me know why this happens?
I am attaching a document for your reference.