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

Adding indexes in h5p database table

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Development in progress
    • 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
            Peer reviewer:
            Ilya Tregubov Ilya Tregubov
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 12 minutes
                12m