Метод isIndexedJoinKey
Сигнатура метода
private function isIndexedJoinKey(Field $field, Factory $factory): bool
Возвращает:
bool
Описание
A join key filters the non-leading source by IN() on this field once per chunk, so only index-backed fields qualify. The primary key (ID) always is; a scalar entity reference (COMPANY_ID, CONTACT_ID, PARENT_ID_{typeId}) qualifies only when the physical table actually carries a leading index on its column — some references (e.g. b_crm_deal.MYCOMPANY_ID, QUOTE_ID) have none, and offering them as a key would rescan the whole table per chunk. Every other field (TITLE, DATE_MODIFY, user fields, free text) is refused as a key upstream.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$field
|
Field
|
—
|
—
|
$factory
|
Factory
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/integration/bizproc/datasource/datasourceprovider.php