nexadus
7-17-07, 03:47 AM
hello everyone,
i'm sort of new w/ mysql and i'm just wondering if my site requires 8 queries to load a page and it is a multi-user site (around 50-100 users), is it better to open and close a mysql connection after each query or open it and run the 8 queries and then close it?
And what's the pro's and con's for each?
B/C i know there's a limit on the number of concurrent connections and i dont want to violate it, but at the same time i dont want to keep opening and closing it b/c that takes up a lot of resources and probably will lag the db.
any suggestions from the mysql rockstars?
i'm sort of new w/ mysql and i'm just wondering if my site requires 8 queries to load a page and it is a multi-user site (around 50-100 users), is it better to open and close a mysql connection after each query or open it and run the 8 queries and then close it?
And what's the pro's and con's for each?
B/C i know there's a limit on the number of concurrent connections and i dont want to violate it, but at the same time i dont want to keep opening and closing it b/c that takes up a lot of resources and probably will lag the db.
any suggestions from the mysql rockstars?