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

Changes

Title changed

Increasing ActiveRecordR 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: 50 033 times
Version: 1.1
Category: How-tos
Written by: Trejder
Last updated by: igorsantos07
Created on: Dec 14, 2010
Last updated: 12 years ago
Update Article

Revisions

View all history