Hi! Can anyone say Stored procedures pros and cons AND Java Stored Procedures pros and con? And how to test it.
Best regards!
Hi! Can anyone say Stored procedures pros and cons AND Java Stored Procedures pros and con? And how to test it.
Best regards!
Stored procedures pro:
-Secure
-Performance and scalability
-Allows for changes to one tier (the database itself rather then the actual code of the interface / web page)
-Can be scripted out or moved over easily
The arguments for and against stored procedures tend to split on what you think is the correct answer to the question: does business logic belong in the database or the application? I will try to be neutral in my presentation of the arguments. If I succeed some of my pros and cons will contradict themselves.
PRO
CON
Many of these general points also apply to Java Stored Procedures. I wrote an answer to your related question, so these Pros and Cons may seem familar.
PRO
CON
The following is true of native stored procedures and Java stored procedures: code written by developers with no understanding of how databases work can perform really badly. This applies equally to front-ends built or ORM tools configured without the appropriate level of expertise. However, this situation is less likely to arise with native stored procedures because their functionality is shaped towards building efficient database applications.