Remove comments
authorMatthias Schmidt <gravatronics@live.com>
Thu, 27 Jun 2019 16:23:03 +0000 (18:23 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 27 Jun 2019 16:23:03 +0000 (18:23 +0200)
wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php
wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php
wcfsetup/install/files/lib/system/edit/EditHistoryManager.class.php
wcfsetup/install/files/lib/system/search/mysql/MysqlSearchIndexManager.class.php

index 99f32de2255b009ab512ad9db0c6bfec061a0c95..4d8c9f508aa16c319d13cc8ccc06eeaad3c24a9f 100644 (file)
@@ -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);
                
index 1e4239635cd219047bd3473e09e30a37676f5550..d367c1c9fcd8ad827ea97e38bb4e9e10ca6d4616 100644 (file)
@@ -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);
                
index 92063480266f221661b61c58a4d834a95668dd6d..1567330c0ade388e99ba241828e6e78bca208957 100644 (file)
@@ -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);
                
index 4bad6d155dbf9c887d77f981aec737e68095f9aa..6c17ba76826859ddeec1c51772404bbcceaff0ec 100644 (file)
@@ -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);