• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Stored Procedure, Functions

 
wrushasen dakhane
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

Does Stored procedure gets compiled every time when it is executed?

Does Function gets compiled every time when it is executed?

Which one is more efficient and when to you use Stored procedure?

thanks

Wrushasen Dakhane.
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Stored procedures and functions only get compiled the first time. Once and only once.

As far as what is fastest. Well, that really depends on a lot of factors. But I would say without out other features like caching or other mechanisms, if the procedure is about data, then a stored procedure/function will be faster than say coding it in another language.

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic