Reputation: 3214
Yii's ORM uses too many SHOW table statements.
It looks so in logs:
PhpMyadmin's stats says that SHOW statements take about 46% resources of MySql:
Is there any way to mitigate this?
EDIT
I forgot to add that I have caching enabled like the following:
schemaCachingDuration => 7200
As I understand it should cache table schema for 2 hours. But it's updated anyway.
Upvotes: 1
Views: 39
Reputation: 1663
You can set the schemaCachingDuration (at least in your live system)
You also have to set the cache
setting:
e.g.
'cache'=>array(
//'class'=>'CApcCache',
//'class'=>'CDummyCache',
'class'=>'CDbCache',
),
Upvotes: 1