23 public static function fillNormNameColumn($startId = 0, $timeout = 0, $limit = 100)
26 $startTime = microtime(
false);
37 $glParams[
'limit'] = $limit;
40 $res = Name\LocationTable::getList($glParams);
43 while($row = $res->fetch())
45 if(!isset($normalizers[$row[
'LANGUAGE_ID']]))
47 $normalizers[$row[
'LANGUAGE_ID']] = \Bitrix\Sale\Location\Normalizer\Builder::build($row[
'LANGUAGE_ID']);
50 Name\LocationTable::update(
53 'NAME_NORM' => $normalizers[$row[
'LANGUAGE_ID']]->normalize($row[
'NAME'])
59 if($timeout && $startTime + $timeout >= microtime(
false))