如何消除CakePHP的“SHOW FULL COLUMNS”查询?
I realize that these might not necessarily be a huge performance issue, but I'd like to get rid of any unnecessary SHOW FULL COLUMNS FROM
queries that Cake generates. I've tried using the Containable behavior, which I thought would stop Cake from looking at any associations that I haven't included in my find()
, but I still see the SHOW FULL COLUMNS FROM
queries in my SQL dump. I have also tried unbindModel()
, but it has no effect.
我意识到这些可能不一定是一个巨大的性能问题,但我想摆脱Cake生成的查询中任何不必要的SHOW FULL COLUMNS。我已经尝试使用Containable行为,我认为会阻止Cake查看我没有包含在find()中的任何关联,但我仍然在SQL转储中看到SHOW FULL COLUMNS FROM查询。我也尝试过unbindModel(),但它没有效果。
I'm not an expert, and don't understand all the intricacies of Cake, so any help here would be greatly appreciated!
我不是专家,也不了解蛋糕的所有错综复杂,所以任何帮助都会非常感谢!
1 个解决方案
#1
5
Doesn't it cache it when the debug level is set to 0?
当调试级别设置为0时,它是否缓存它?
更多相关文章
- 获取项目列表的更好方法:缓存序列化数据与数据库查询或其他?
- 如何在Safari浏览器中禁用Ajax缓存?
- 是否可以知道文件是否在用户的浏览器缓存中?
- 每次部署站点时,如何使用Google App Engine清除内存缓存?
- 在需要缓存的时候,谨慎使用python的负下标
- MEMCACHED缓存及状态查看
- 从QQ浏览器缓存文件中提取出完整的视频
- Linux缓存相关知识整理(史上最全!!)
- repcached与mysql缓存測试