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

optimize memory usage of index_image_mysql for big images

    XMLWordPrintable

Details

    Description

      minor tweaks to reduce mem usage:
      . make sure we flush image chunks even if php's output_buffering is on
      . remove from php memory one image chunk before loading another

          while ( $row = mysql_fetch_row( $res ) )
              echo $row[0]; 
      

      becomes

          while ( $row = mysql_fetch_row( $res ) )
          {
              echo $row[0];
              flush();
              unset( $row );
          }
      

      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: