160 $sqlHelper = $this->connection->getSqlHelper();
163 foreach(current($data) as $key => $val)
165 if($queryBegin <>
'')
168 $queryBegin .= $sqlHelper->forSql($key);
171 $queryBegin .=
', XML_ID';
172 $queryBegin =
"INSERT INTO ".$this->name.
"(".$queryBegin.
") VALUES ";
176 $INSERT_BLOCK_SIZE = 100;
178 foreach($data as $xmlId => $row)
185 foreach($row as $col)
190 $rowValues .=
"'".$sqlHelper->forSql($col).
"'";
193 $values .=
"(".$rowValues.
", '".$sqlHelper->forSql($xmlId).
"')";
195 if($i >= $INSERT_BLOCK_SIZE)
197 $this->connection->queryExecute($queryBegin.$values);
207 $this->connection->queryExecute($queryBegin.$values);
209 $this->connection->queryExecute(
"CREATE INDEX IX_BSDTMP_XML_ID ON ".$this->name.
" (XML_ID)");