Метод isFlatSingleUserFetchPreferred

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 162–165
~/bitrix/modulesim/lib/V2/Recent/PreviewSource/UnreadFreshnessQuery.php

Исходный код

PHP
protected

Сигнатура метода

protected function isFlatSingleUserFetchPreferred(): bool

Возвращает: bool

Описание

MySQL prefers the flat statement for a single user: driven by the constant USER_ID equality, its estimates never depend on per-key averages, so the plan survives any statistics skew. The per-depth queries stay as the other dialects' path (and the test oracle).