Summary

Most developers like optimizing their code. They like making their code run faster. A seasoned professional usually does not run after optimization. He/She keeps delivering functionalities with an eye open to how his/her code is doing. At the same time, a seasoned professional also keeps their toolbox ready so that the moment he/she spots a problem they know which tool from their toolbox should be used to fix the problem. This chapter has tried to help you with knowing what to add to your toolbox. Learning the features/guidelines presented in this chapter is one step taken in the direction of becoming a seasoned professional. This chapter by no means is an encyclopedia of advice on how to tune performance of NHibernate.

This chapter gives an idea of different knobs that are available to you and what happens when these knobs are turned in different directions. The features presented in this chapter are basic and form the part of fundamental understanding of NHibernate. You may not get the right level of optimization by following just the features mentioned here. There are several different tweaks and tricks that you can apply. These tricks and tweaks will be unique to your problem. As you develop more expertise in the area of optimization and understand how NHibernate works internally, you will find it easier to get to the right level of optimization.

We have hit another important milestone. In the next chapter, we will be looking at using NHibernate in a real life web application. We will look at interesting topics such as how to use sessions and transactions effectively in a web application, how to structure the application, and so on. The next chapter will be more about practical advice about developing real life applications with NHibernate.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset