1
jmass
Xoops DB Question
  • 2004/9/30 0:21

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


When I turn on MySQL debug, I get a long list of queries. My question is:

Does XOOPS create a connection to the DB for each of these queries, or does using "$xoopsDB->query($sql)" (in other words the XoopsDB class) do some form of connection pooling for me?

Thanks,

JMass

2
jmass
Re: Xoops DB Question
  • 2004/9/30 14:50

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


No help from a kind Dev???

JMass

3
intel352
Re: Xoops DB Question
  • 2004/9/30 15:45

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


that's a good question, i'm not sure

i'd bet it still makes a connection each time, but i'm no guru, so it's best to wait for a core dev's answer

4
ackbarr
Re: Xoops DB Question

only one db connection is made per page request, which is enforced by the XoopsDatabaseFactory::getDatabaseConnection(); function. The global $xoopsDB object is generated via this function (see /include/common.php).


5
jmass
Re: Xoops DB Question
  • 2004/9/30 17:53

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


Very cool!

I was really hoping to hear that!

JMass

6
intel352
Re: Xoops DB Question
  • 2004/9/30 18:31

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


nice, i'm glad my guess was incorrect

shows how much i know, ehehe

Login

Who's Online

426 user(s) are online (327 user(s) are browsing Support Forums)


Members: 0


Guests: 426


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits