mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
parent
23f0ec32d4
commit
b77bdcbcf4
@ -72,10 +72,12 @@ class ImportRunBasedPurgeStrategy extends PurgeStrategy
|
||||
SyncUtils::extractVariableNames($pattern)
|
||||
);
|
||||
|
||||
$rows = $runA->fetchRows($columns, null, $result);
|
||||
$result = array();
|
||||
foreach ($rows as $row) {
|
||||
$result[] = SyncUtils::fillVariables($pattern, $row);
|
||||
foreach (array_chunk($result, 1000) as $keys) {
|
||||
$rows = $runA->fetchRows($columns, null, $keys);
|
||||
$result = array();
|
||||
foreach ($rows as $row) {
|
||||
$result[] = SyncUtils::fillVariables($pattern, $row);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user