posted 14 years ago
I have created an app for managing photo albums and I have a question about design. Just say I have a function that displays all of the albums. It does this by getting the data from the database. Each time the link is selected to display the list of albums should that function open a connection to the database or should a connection be opened only once when the user first logs on.