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

eZSearch::registerSearchObject() inserts dulicates when DelayedIndexing is enabled [ patch attached ]

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.0.2, 4.1.0alpha1
    • 4.0.1, 4.0.1rc1, 4.0.1rc2
    • Cronjobs, Search
    • None
    • Operating System: Any
      PHP Version: (please be specific, like '4.4.3' or '5.1.5') : any
      Database and version:any
      Browser (and version):any

    Description

      Hei hei,

      When

      site.ini[SearchSettings].DelayedIndexing=enabled

      , publishing an object ends up in calling, in

      eZSearch::registerSearchObject()

      , the following code :

      $db = eZDB::instance();
      $db->query( 'INSERT INTO ezpending_actions( action, param ) VALUES ( \'index_object\', '. (int)$objectID. ' )' );
      

      Duplicates are not handled here, which potentially ends up, depending on the frequence at which the indexcontent.php cronjob is run, in indexing several times the same object. Performance show-stopper.
      Patch attached.

      Attachments

        Activity

          People

            pborgerm pborgerm
            nfrp nfrp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: