Re: A new host compagny for my site
[email protected] (mikespub)
| Newsgroups | gmane.comp.cms.xaraya.curiosa |
|---|---|
| Organization | Not much, really... |
| Message-ID | <[email protected]> |
In article <bpch4j$ef5$1-111RdWWlOxkOkXtL6OYfHgC/[email protected]>, "Diamonddogs" <[email protected]> wrote: >Hi, >A last question. >I'm "hunting" for a new host but i want to know something about connections. >Is one member login = 1 connection or more? >An anonymous = 1 connection also i suppose, no? >If a member (or an anonymous) is login xaraya AND ipb for example it's only >one connection or two? >Thanx >Chris > Normally, a new database connection is opened for each page request, and it's closed again when the page request is processed. So at any time, you should have as many database connections open (for your site) as there are page requests being executed at that moment. PHP also supports persistent connection to Mysql, with mysql_pconnect. In that case, the database connection is not closed at the end of the page request, but it's kept open for the next page request. This is OK as long as you're alone on that server, but it's not something you want to use when there are many sites running on the same server. Therefore, Xaraya does not use persistent connections. I don't know ipb, so I don't know which kind of connections it uses - might be worth checking out. Mike.