Sync: Use PrefetchCache
This commit is contained in:
parent
2b227a356b
commit
1a02543321
|
@ -5,6 +5,7 @@ namespace Icinga\Module\Director\Import;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Icinga\Data\Filter\Filter;
|
use Icinga\Data\Filter\Filter;
|
||||||
use Icinga\Module\Director\Db;
|
use Icinga\Module\Director\Db;
|
||||||
|
use Icinga\Module\Director\Db\Cache\PrefetchCache;
|
||||||
use Icinga\Module\Director\Objects\IcingaObject;
|
use Icinga\Module\Director\Objects\IcingaObject;
|
||||||
use Icinga\Module\Director\Objects\ImportSource;
|
use Icinga\Module\Director\Objects\ImportSource;
|
||||||
use Icinga\Module\Director\Objects\IcingaService;
|
use Icinga\Module\Director\Objects\IcingaService;
|
||||||
|
@ -481,6 +482,8 @@ class Sync
|
||||||
return $this->objects;
|
return $this->objects;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PrefetchCache::initialize($this->db);
|
||||||
|
|
||||||
$this->raiseLimits()
|
$this->raiseLimits()
|
||||||
->startMeasurements()
|
->startMeasurements()
|
||||||
->fetchSyncProperties()
|
->fetchSyncProperties()
|
||||||
|
|
Loading…
Reference in New Issue