From 2a171a64598431e20358fb37a440617107baa6a5 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 27 Jun 2019 18:23:03 +0200 Subject: [PATCH] Remove comments --- .../files/lib/data/AbstractDatabaseObjectAction.class.php | 2 -- wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php | 2 -- .../install/files/lib/system/edit/EditHistoryManager.class.php | 2 -- .../lib/system/search/mysql/MysqlSearchIndexManager.class.php | 2 -- 4 files changed, 8 deletions(-) diff --git a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php index 99f32de225..4d8c9f508a 100644 --- a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php @@ -365,8 +365,6 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction, ID $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); diff --git a/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php b/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php index 1e4239635c..d367c1c9fc 100644 --- a/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php +++ b/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php @@ -102,8 +102,6 @@ abstract class DatabaseObjectEditor extends DatabaseObjectDecorator implements I 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); diff --git a/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php b/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php index 9206348026..1567330c0a 100644 --- a/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php +++ b/wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php @@ -77,8 +77,6 @@ class EditHistoryManager extends SingletonFactory { 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); diff --git a/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchIndexManager.class.php b/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchIndexManager.class.php index 4bad6d155d..6c17ba7682 100644 --- a/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchIndexManager.class.php +++ b/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchIndexManager.class.php @@ -44,8 +44,6 @@ class MysqlSearchIndexManager extends AbstractSearchIndexManager { * @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); -- 2.20.1