what is more efficient, opening the database once in the beginning of the page then closing it at the end of the page, or opening the db connection each time you need it.
for example:
i have a page that executes 50 queries. is it better to open the db, execute the queries, then close it, or to open and close the db 50 times?
thanks







Bookmarks