Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-37585

Make $DB->set_debug(true) display the time taken to execute each query.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 2.5
    • Component/s: Database SQL/XMLDB
    • Labels:
    • Testing Instructions:
      Hide

      Add $DB->set_debug(true); near the top of some script.

      Note that, as well as seeing all the SQL executed, you can also see the time each query took.

      Show
      Add $DB->set_debug(true); near the top of some script. Note that, as well as seeing all the SQL executed, you can also see the time each query took.
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Summary says it all!

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/13