Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7018321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:02:00+00:00 2026-05-27T23:02:00+00:00

We intend to use mysql stored procedures for handling all database work for one

  • 0

We intend to use mysql stored procedures for handling all database work for one project.
There are several applications(different languages) using same database and I am fairly sure that there is nice amount of repeated SQL code across those apps.

And then while reading something about mysq I stumbled upon
http://www.joinfu.com/2010/05/mysql-stored-procedures-aint-all-that/
Article basically says that stored procedures are compiled each time when new db connection is made.
Will mysql compile ALL(3 digits number at least) stored procedures on database?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:02:00+00:00Added an answer on May 27, 2026 at 11:02 pm

    No. Query and stored procedures are compiled on demand and then kept in a cache for a while. If you use a specific stored procedure repeatedly the version compiled in the cache will be used, but if it is no longer in cache it must be compiled first, just like any other query you send to a database.

    What MySQL certainly will not do is compile all x-hundred stored procedures at once – in case that was what you were afraid of.

    But all this is somewhat irrelevant The advantage of stored procedures is that you can make sure that multiple applications using the same database, use it in the same way. When your performance is such that you start looking at the compilation cache for speed, you are looking at the wrong place. Speed optimization is better done through either query or database redesign.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I intend to use TripleDES in one of my project. I was doing some
I'm working on a project that uses Hibernate and MySQL. I intend to use
I intend to use Reinforcement learning in my project but I do not know
i'm intend to use both Linq to sql and EF 4.x, in same project
I intend to use RADIX / MTRIE as my preferred data-structure for a routing
I have declared a DataTemplate in Window.Resources; I don't intend to use it inside
I intend to develop an application using .Net 4.0, and intend to use EF4
So..I intend to use a Model View Presenter(the passive mode, in which the UI
i am currently learning Zend Framework 1.10 and intend to use Doctrine 2. however
I am trying to index a table in a database using Lucene. I use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.