$tableName = call_user_func([$this->className, 'getDatabaseTableName']);
$indexName = call_user_func([$this->className, 'getDatabaseTableIndexName']);
- // instead of executing one query per object id, execute queries
- // for batches of up to 1000 object ids at once
$itemsPerLoop = 1000;
$loopCount = ceil(count($this->objectIDs) / $itemsPerLoop);
public static function deleteAll(array $objectIDs = []) {
$affectedCount = 0;
- // instead of executing one query per object id, execute queries
- // for batches of up to 1000 object ids at once
$itemsPerLoop = 1000;
$loopCount = ceil(count($objectIDs) / $itemsPerLoop);
public function delete($objectType, array $objectIDs) {
$objectTypeID = $this->getObjectTypeID($objectType);
- // instead of executing one query per object id, execute queries
- // for batches of up to 1000 object ids at once
$itemsPerLoop = 1000;
$loopCount = ceil(count($objectIDs) / $itemsPerLoop);
* @inheritDoc
*/
public function delete($objectType, array $objectIDs) {
- // instead of executing one query per object id, execute queries
- // for batches of up to 1000 object ids at once
$itemsPerLoop = 1000;
$loopCount = ceil(count($objectIDs) / $itemsPerLoop);
$tableName = SearchIndexManager::getTableName($objectType);