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

Adding indexes in h5p database table

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Waiting for peer review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.10.2
    • Fix Version/s: None
    • Component/s: H5P

      Description

      In order to optimizing our database performance, we have found the SQL Query called in the function get_content_from_pluginfile_url in h5p-plugin:

      SELECT * FROM `mdl_h5p` WHERE `pathnamehash` = ?

      This query took almost 1minute for approximately 6 execution. We want to put an index on the field pathnamehash. Is that a good solution? or does anyone have any idea?

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            nisadoc nisaDoc
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated: