N
N
Nikita2020-10-12 18:00:51
PHP
Nikita, 2020-10-12 18:00:51

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();


XDebug:
5f846dc1b689e677016315.jpeg
In the application itself, the number of getValue calls is more than 5000. Are

these normal metrics or am I doing something wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shamanov, 2020-10-13
@SilenceOfWinter

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 question

Ask a Question

731 491 924 answers to any question