如何消除 CakePHP 的“显示完整列”查询?
我意识到这些可能不一定是一个巨大性能问题,但我想摆脱 Cake 生成的任何不必要的 SHOW FULL COLUMNS FROM
查询。我尝试过使用 Containable 行为,我认为这会阻止 Cake 查看我未包含在 find()
中的任何关联,但我仍然看到 SHOW FULL COLUMNS FROM
我的 SQL 转储中的查询。我也尝试过unbindModel()
,但没有效果。
我不是专家,也不了解蛋糕的所有复杂性,所以这里的任何帮助将不胜感激!
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.
I'm not an expert, and don't understand all the intricacies of Cake, so any help here would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当调试级别设置为0时,它不会缓存它吗?
Doesn't it cache it when the debug level is set to 0?