Calling a database is not always as expensive as it seems, a typical website makes dozens of database calls on every page. But if this becomes problematic in terms of performance, consider using an ORM solution. The excellent open source NHibernate comes to mind, which is the de facto standard for mapping databases to classes and objects. In addition to displaying, it automatically provides two levels of caching and pooling. Without any problems, your site surpasses any other landslide.
Lack of use of ORM? For many people, this is considered a pretty steep learning curve. If you want to read this, be sure to visit NHibernate Best Practices . Hard to read at first, but definitely worth it.
If you combine NHibernate with FluentNHibernate , it will become a breeze.
source share