- Модуль: iblock
- Путь к файлу: ~/bitrix/modules/iblock/lib/propertyindex/storage.php
- Класс: BitrixIblockPropertyIndexStorage
- Вызов: Storage::flushIndexEntries
public function flushIndexEntries()
{
$connection = BitrixMainApplication::getConnection();
if ($this->insertBuffer)
{
try
{
$insertQuery = "
INSERT INTO ".$this->getTableName()."
(SECTION_ID ,ELEMENT_ID ,FACET_ID ,VALUE ,VALUE_NUM ,INCLUDE_SUBSECTIONS)
VALUES ".implode(',', $this->insertBuffer)."
";
$connection->query($insertQuery);
$this->insertBuffer = array();
$this->insertLength = 0;
}
catch (BitrixMainDBSqlException $e)
{
return false;
}
}
return true;
}