Difference between #2 and #4 of
Increasing AR performance in connections with Oracle

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;
}
}
[...]
1 0
15 followers
Viewed: 54 465 times
Version: 1.1
Category: How-tos
Written by: Trejder
Last updated by: igorsantos07
Created on: Dec 14, 2010
Last updated: 13 years ago
Update Article

Revisions

View all history