Answer the question
In order to leave comments, you need to log in
Is this number of method calls in Bitrix normal?
I started profiling the application through XDebug, I was a little confused by the number of calls to some methods from the Bitrix ORM.
Here is the page code:
<?php
require_once($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php');
\Bitrix\Main\Loader::includeModule('iblock');
$iblockId = 5;
$iblockElementId = 7;
$iblock = \Bitrix\Iblock\Iblock::wakeUp($iblockId);
$element = $iblock->getEntityDataClass()::getByPrimary($iblockElementId)->fetch();
\CMain::finalActions();
Answer the question
In order to leave comments, you need to log in
bitrix hauno and it doesn’t sink only thanks to caching, which you apparently have disabled / not configured. if we talk about any normal system, then over 1000 hits per request is a clear reason for refactoring
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question