Hi All,
I'm creating a web application. And I was wondering if anybody knows if there are any major differences between the 2 ways of connecting to a database:
1) connecting everytime there's a call to the database and closing the connection after every call.
2) connecting at the start of a session (when a user logs in) and closing the connection when the session times out or is ended.
I notice that there is less coding in the 2nd option, but does it substantially increase the bandwidth used? Could there be a problem if there are too many connections open?
Thanks,
Spence
I'm creating a web application. And I was wondering if anybody knows if there are any major differences between the 2 ways of connecting to a database:
1) connecting everytime there's a call to the database and closing the connection after every call.
2) connecting at the start of a session (when a user logs in) and closing the connection when the session times out or is ended.
I notice that there is less coding in the 2nd option, but does it substantially increase the bandwidth used? Could there be a problem if there are too many connections open?
Thanks,
Spence