Re: Execution plan reuse
From: Prasad Koukuntla (prasad.koukuntla_at_realpage.com)
Date: 10/07/04
- Next message: Luqman: "Re: RAISERROR() NOT POUP MESSAGE ?"
- Previous message: Tibor Karaszi: "Re: RAISERROR() NOT POUP MESSAGE ?"
- In reply to: Kalen Delaney: "Re: Execution plan reuse"
- Next in thread: David Gugick: "Re: Execution plan reuse"
- Reply: David Gugick: "Re: Execution plan reuse"
- Reply: Hugo Kornelis: "Re: Execution plan reuse"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 7 Oct 2004 13:37:35 -0500
Thank you Kalen.
Is there way to execute SPs without actually sustaining the affects of it?
This may not sound like a reasonable request but I want to speed up the
response time of my SPs by keeping the execution plans in cache before the
users call these SPs.
Thanks,
Prasad Koukuntla
"Kalen Delaney" <replies@public_newsgroups.com> wrote in message
news:e1LeiyIrEHA.2596@TK2MSFTNGP12.phx.gbl...
> Hi Prasad
>
> An execution plan for a stored procedure can be reused by any connection
> calling that procedure, as long as the SET options in the environment are
> the same. There are other factors that can force a recompile so the plan
> isn't reused, but that is a big topic.
>
> There is a lot of information in the Books Online about plan caching and
> reuse. Make sure you have read of it.
>
> --
> HTH
> ----------------
> Kalen Delaney
> SQL Server MVP
> www.SolidQualityLearning.com
>
>
> "Prasad Koukuntla" <prasad.koukuntla@realpage.com> wrote in message
> news:%231XyWvIrEHA.1204@TK2MSFTNGP12.phx.gbl...
> >I want to confirm my understanding of execution plan reusage. The
execution
> > plan for a stored procedure is created when the SP is first called and
> > kept
> > in the buffer. This execution plan is resused if the same stored
procedure
> > is called from the SAME CONNECTION. It would NOT resue the execution
plan
> > if
> > the same SP is called from a different connection. Please confirm this.
If
> > this is not true, can one execution plan be reused by several
connections
> > if
> > the procedure call remains the same. From my experience, my understaning
> > of
> > reuse appears to be correct.
> >
> > What I want to do:
> > If my understanding is wrong and the execution plan can be resued by
> > several
> > connections, I want to explore the possibility of executing my
frequently
> > used SPs once in the morning so their execution plans are placed in the
> > cache and available for all users so the response time is faster. If
this
> > is
> > possible, is there a way to generate the execution plan for these SPs
and
> > keep it in the cache without actually making the data modifications the
> > stored procedure code might be making if it were actually to be
executed.
> >
> > Please let me know.
> >
> > Thanks
> > Prasad Koukuntla
> >
> >
> >
> >
>
>
- Next message: Luqman: "Re: RAISERROR() NOT POUP MESSAGE ?"
- Previous message: Tibor Karaszi: "Re: RAISERROR() NOT POUP MESSAGE ?"
- In reply to: Kalen Delaney: "Re: Execution plan reuse"
- Next in thread: David Gugick: "Re: Execution plan reuse"
- Reply: David Gugick: "Re: Execution plan reuse"
- Reply: Hugo Kornelis: "Re: Execution plan reuse"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|