3
I am starting the development of an application, basically it is a managerial control of companies. The application will issue NFC-e, Nfe, control stock, finance and etc, the database will be hosted in Azure. I started modeling the database and creating stored procedures to keep the data in the database, but noticed that I will have to create a huge amount of stored procedures due to the fact that the database contains many objects. I am taking care not to insert anything from the business layer into the stored procedures.
As I have little experience I am confused, because some say that stored Procedure is a bad practice and should only be used in issues where performance is needed, example here. Others say it’s worth using, example here.
In the opinion of the most experienced, which is the best way, to use an ORM or to create all the stored procedures necessary? It is a problem for a database to have a large number of stored procedures ? In this answer has one that says it has 200 or more in a commercial system.
I flagged your question as based on opinions. It depends. You can’t tell if it’s better or worse, good or bad practice to use procedures. I’ve done systems full of them as well as with ORM.
– user26552
@Murilo, I think so too.
– Marco Souza
You can read this: http://answall.com/q/15739/101. This answer says that a SP is a lot: http://stackoverflow.com/a/135954/221800
– Maniero