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

Clustering: fetchFileMetaData() more expensive than necessary

    XMLWordPrintable

Details

    Description

      public function fetchFileMetadata( $filepath )
      {
          $filePathHash = md5( $filepath );
          $sql = "SELECT * FROM ezdfsfile WHERE name_hash='{$filePathHash}'" ;
      ...
      

      In the calling method (ezpClusterGateway::retrieve()), only the fields "datatype", "size" and "mtime" are used, so the Query should be made more specific.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jgamez jgamez
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 45 minutes
                1h 45m