Is reading the database records from the Database using Stored Procedures in NHibernate a good approach?If yes then why or if No, then also why?
The application has only the feature of reading values from the database using NHibernate in the data access layer no updates and no inserts just only retrieval.
Is reading the database records from the Database using Stored Procedures in NHibernate a
Share
In my opinion, stored procedures are only necessary if you handle a vast amount of data. The performance is better, because the database managament system can use its optimization routines to fasten the access to the stored data.
The scond reason not to use stored procedures is, that you want to separate the dbms and your application. So you can change the database system if you want to. If you use stored procedures your bound to this specifig dbms (ie. oracle).