I am a newbie for hibernate,
From the below link,
Hibernate Session Connection Relationship
I understood that one hibernate session object will hold one connection object.
so my doubt is,if i have configured my connection pool size as 10 in my server. Will it be possible for only 10 people to work simultaneously in the application ?
Please correct me if i am wrong.
Partially, yes. This means only 10 SQL queries can be executed at the same time. If 11 clients are accessing the same page at exactly the same time and the majority of time is spent in some long-running SQL query then most likely the eleventh client will have to wait for one of the remaining 10 to finish.
However this does not mean your application is limited to 10 sessions/clients! For example in a web application the user typically opens a page, looks at it for a while, clicks on a link, etc. If your user spends 9 seconds reading the page and 1 second waiting for next page then only 10% of the time is spent on the server – hence you can handle 100 logged in users.
Moreover handling a request is not only about SQL queries. Sending data back and forth, parsing, rendering… – this all takes time.
So basically: you are limited to 10 concurrent SQL queries but this means 10x or maybe 100x more users that can use your application.