// instead of executing one query per object id, execute queries
// for batches of up to 1000 object ids at once
$itemsPerLoop = 1000;
- $batchCount = ceil(count($this->objectIDs) / $itemsPerLoop);
+ $loopCount = ceil(count($this->objectIDs) / $itemsPerLoop);
if (!empty($this->parameters['data'])) {
$updateSQL = '';
}
WCF::getDB()->beginTransaction();
- for ($i = 0; $i < $batchCount; $i++) {
+ for ($i = 0; $i < $loopCount; $i++) {
$batchObjectIDs = array_slice($this->objectIDs, $i * $itemsPerLoop, $itemsPerLoop);
$sql = "UPDATE " . $tableName . "
}
WCF::getDB()->beginTransaction();
- for ($i = 0; $i < $batchCount; $i++) {
+ for ($i = 0; $i < $loopCount; $i++) {
$batchObjectIDs = array_slice($this->objectIDs, $i * $itemsPerLoop, $itemsPerLoop);
$sql = "UPDATE " . $tableName . "
// instead of executing one query per object id, execute queries
// for batches of up to 1000 object ids at once
$itemsPerLoop = 1000;
- $batchCount = ceil(count($objectIDs) / $itemsPerLoop);
+ $loopCount = ceil(count($objectIDs) / $itemsPerLoop);
WCF::getDB()->beginTransaction();
- for ($i = 0; $i < $batchCount; $i++) {
+ for ($i = 0; $i < $loopCount; $i++) {
$batchObjectIDs = array_slice($objectIDs, $i * $itemsPerLoop, $itemsPerLoop);
$sql = "DELETE FROM " . static::getDatabaseTableName() . "
// instead of executing one query per object id, execute queries
// for batches of up to 1000 object ids at once
$itemsPerLoop = 1000;
- $batchCount = ceil(count($objectIDs) / $itemsPerLoop);
+ $loopCount = ceil(count($objectIDs) / $itemsPerLoop);
WCF::getDB()->beginTransaction();
- for ($i = 0; $i < $batchCount; $i++) {
+ for ($i = 0; $i < $loopCount; $i++) {
$batchObjectIDs = array_slice($objectIDs, $i * $itemsPerLoop, $itemsPerLoop);
$sql = "DELETE FROM wcf".WCF_N."_edit_history_entry
// instead of executing one query per object id, execute queries
// for batches of up to 1000 object ids at once
$itemsPerLoop = 1000;
- $batchCount = ceil(count($objectIDs) / $itemsPerLoop);
+ $loopCount = ceil(count($objectIDs) / $itemsPerLoop);
$tableName = SearchIndexManager::getTableName($objectType);
WCF::getDB()->beginTransaction();
- for ($i = 0; $i < $batchCount; $i++) {
+ for ($i = 0; $i < $loopCount; $i++) {
$batchObjectIDs = array_slice($objectIDs, $i * $itemsPerLoop, $itemsPerLoop);
$sql = "DELETE FROM " . $tableName . "
}
$itemsPerLoop = 1000;
- $batchCount = ceil(count($eventData) / $itemsPerLoop);
+ $loopCount = ceil(count($eventData) / $itemsPerLoop);
WCF::getDB()->beginTransaction();
- for ($i = 0; $i < $batchCount; $i++) {
+ for ($i = 0; $i < $loopCount; $i++) {
$batchEventData = array_slice($eventData, $i * $itemsPerLoop, $itemsPerLoop);
$parameters = [];