Changes
Title
changed
Increasing AR performance in connections with Oracle
Category
unchanged
How-tos
Yii version
unchanged
Tags
changed
AR, active record, performance, speedup, oracle
Content
changed
[...]
EOD;
$command=$this->getDbConnection()->createCommand($sql);
foreach($command->queryAll() as $row)
{
$name = $row["COLUMN_NAME"];
$table->foreignKeys[$name]=array($row["TABLE_REF"], array($row["COLUMN_REF"])
);
if(isset($table->columns[$name]))
$table->columns[$name]->isForeignKey=true;
}
}[...]