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

use arrayquery() with 'column' parameter when it can be done

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.0.6, 4.1.3
    • Database related
    • None

    Description

      There are a lot of queries where one column is fetched, or, even worse, many columns are fetched but only one is used.

      Afterwards, the results array is looped over and a single-dimension array is built from the results (see eg. ezkeyword.php, line 316).

      This can be done much faster by pushing the creation of the final array within the arrayquery() call itself.

      Attachments

        Activity

          People

            unknown unknown
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: