run this my pc need 1s not sql used,It’s Yii code need 1s。
test server need 0.02~10s too slowly.
Hospital::model()->findByPk($hid);
I find this
framework/base/CModule.php
public function getComponent($id,$createIfNull=true)
{
…
$component->init();// if $id is ‘db’ run this use 1~10s
…
}
is This a bug?
Is there a faster way?