Answer the question
In order to leave comments, you need to log in
Doctrine 2 why is the first query taking longer?
I do:
for ($i = 0; $i < 5; $i++) {
$time = microtime(true);
$em->getRepository('Test\Entity')->findAll();
echo microtime(true) - $time;
}
$config->setMetadataCacheImpl($cache);
$config->setQueryCacheImpl($cache);
$config->setResultCacheImpl($cache);
$config->setHydrationCacheImpl($cache);
Answer the question
In order to leave comments, you need to log in
They didn’t exactly find the problem, but most likely the problem is in the server (virtualka) T, k. no problems were found on the local machine and production(
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question