When I execute a stored procedure first time, it (for example) takes 3 minutes to execute. Once it is precompiled, it takes 1 minute to execute.
After 3 months (without using the SP further), when I try to execute it again it takes 3 minutes.
My question
Is the execution path stored on stack? Or it is due to some other factor?. Correct me if I am wrong in understanding.