Java and Database Efficiency Gains
As with anything, this approach can be taken too far. Since it's more difficult to scale database servers than application servers, it's not wise to put
all of an application's business logic into stored procedures. However, if you follow the general guideline to place
data-related business logic into stored procedures, you will see gains in efficiency both at the Java layer and within the database server.