mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-25 02:47:39 +02:00
Import: distinct fetch from store in benchmark
This commit is contained in:
parent
2ef30f5f12
commit
f0b96674c9
@ -3,6 +3,7 @@
|
||||
namespace Icinga\Module\Director\Import;
|
||||
|
||||
use Exception;
|
||||
use Icinga\Application\Benchmark;
|
||||
use Icinga\Exception\IcingaException;
|
||||
use Icinga\Module\Director\Db;
|
||||
use Icinga\Module\Director\Hook\ImportSourceHook;
|
||||
@ -164,7 +165,9 @@ class Import
|
||||
$this->data = ImportSourceHook::forImportSource(
|
||||
$this->source
|
||||
)->fetchData();
|
||||
Benchmark::measure('Fetched all data from Import Source');
|
||||
$this->source->applyModifiers($this->data);
|
||||
Benchmark::measure('Applied Property Modifiers to imported data');
|
||||
}
|
||||
|
||||
return $this->data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user