Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.0.1, 4.0.1rc1, 4.0.1rc2
-
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.