Sync: Use PrefetchCache

This commit is contained in:
Markus Frosch 2016-10-31 17:20:17 +01:00
parent 2b227a356b
commit 1a02543321
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ namespace Icinga\Module\Director\Import;
use Exception;
use Icinga\Data\Filter\Filter;
use Icinga\Module\Director\Db;
use Icinga\Module\Director\Db\Cache\PrefetchCache;
use Icinga\Module\Director\Objects\IcingaObject;
use Icinga\Module\Director\Objects\ImportSource;
use Icinga\Module\Director\Objects\IcingaService;
@ -481,6 +482,8 @@ class Sync
return $this->objects;
}
PrefetchCache::initialize($this->db);
$this->raiseLimits()
->startMeasurements()
->fetchSyncProperties()