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

verify where_clause() only in debug mode

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.1.2
    • 2.0.3, 2.1
    • Database SQL/XMLDB
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • MOODLE_21_STABLE
    • w31_MDL-28533_m22_columnperf
    • Hide

      1/ enable perf info in page footer
      2/ compare queries per page with and without debugging enabled/disabled

      Expected result is 5-15 fewer read queries in most pages.

      Show
      1/ enable perf info in page footer 2/ compare queries per page with and without debugging enabled/disabled Expected result is 5-15 fewer read queries in most pages.

      The problem is that the current moodle_database->where_clase() does one extra DB query to fetch table columns. This is useful for developers only, for performance reasons it should be disabled on production sites...

            skodak Petr Skoda
            skodak Petr Skoda
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.