mysql - Inline Query vs Stored Procedures to use in PHP -


I am using inline query statements within my model of my application ... now as many people It is said that stored procedures

  • How to use MySQL stored procedures in PHP Codeigniter

  • To use MySQL stored procedures What are the advantages?

stored procedures tool (triggers, views, etc.) And should be used only where the tool is fit. Taking each inline SQL statement and converting it into a stored procedure is not the right direction.

The stored procedures are written through very difficult logic and the cursors are written through the data set through a loop, which is a barrier when you have the ability of PHP to handle logic. is used to.

The only SP project I used to work on that project was a large accounting system, where hundreds of records were recorded with a lot of direct input from code. We have basically told that when there is no need to start and give value to SP (though this is possible). However, it was only one or two of the thousands of inline questions used in the system. I am not saying that this is the only place to use them, but I have made some very big systems and so far they do not have to use 'somewhere'.

In my opinion, it would be better to spend high time to write high-speed, low-drag query inline and use the expansion to verify that you have set the indexed correctly. As long as you do not have very specific requirements for stored procedures, you will feel very unpleasant for use every day.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -