Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15054

Index on table ezkeyword_attribute_link

    XMLWordPrintable

Details

    Description

      Datatype keyword generates sql request like this one.

      SELECT ezkeyword.keyword
      FROM ezkeyword_attribute_link, ezkeyword
      WHERE ezkeyword_attribute_link.keyword_id = ezkeyword.id
      AND ezkeyword_attribute_link.objectattribute_id = "my_id"

      Without index on "objectattribute_id" and with a lot of data, this request can be very slow.
      When doing an EXPLAIN, you can see that without index, mysql fetch all the content of the keyword table.

      Adding an index on objectattribute_id increases performance.

      Attachments

        Activity

          People

            gl gl
            gl gl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: