Quiz 3.1+ does it hold database connection open until submission

Re: Quiz 3.1+ does it hold database connection open until submission

by Tim Hunt -
Number of replies: 1
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

It is no different from any other part of Moodle, and the answer to your question, as asked, in no.

Conceptually, what happens is this: every time Moodle processes a HTTP request, it connects to the database, does a bunch of things, then disconnects. I say conceptually, because often servers will be set up with connection pooling, so instead of continually connecting and disconnecting, it keeps a few connections around, and keeps re-using them, but that is just a performance optimisation.


In reply to Tim Hunt

Re: Quiz 3.1+ does it hold database connection open until submission

by Junior Stormes -

Thank you for your response.

I am new to the forum but I have installed several Moodle sites. However, we are getting larger by the year and I am wanting to expand my knowledge to make sure our students can access our site. We have had a few random events in the past year and I am always nervous about site crashes.

Thank you again for taking the time to answer the post.