Revision #3 has been created by ArmG on Sep 17, 2011, 4:08:24 PM with the memo:
$table->foreignKeys[$name]=array($row["TABLE_REF"], array($row["COLUMN_REF"])); -> $table->foreignKeys[$name]=array($row["TABLE_REF"], $row["COLUMN_REF"]);
« previous (#2) next (#4) »
Changes
Title
unchanged
Incresing AR performance in connections with Oracle
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
AR, active record, performance, speedup
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;
}
}[...]