显示所有活动记录查询
在我的页面测试杂种服务器输出中,列出了 8 个查询,但还计算了更多数据库:
Query1 查询2 ... 查询8 部分渲染1 部分渲染2 .. 部分渲染40 在 4754 毫秒内完成(视图:308,数据库:2246)| 200 OK
如何显示所有正在运行的查询?
另外,是否有有关视图内容的文档;计数代表?
in my test mongrel server output for a page, 8 queries are listed but many more DB are counted:
Query1
Query2
...
Query8
Rendered Partial1
Rendered Partial2
..
Rendered Partial40
Completed in 4754ms (View: 308, DB: 2246) | 200 OK
how do I show all the queries that are running?
Also, is there documentation for what the View; count represents?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定我是否理解这个问题,但你是问 DB 后面的数字是什么意思?如果是,则为返回的记录数。
我的 Mongrel 服务器的一些示例输出:
您在这里只看到 3 个查询,但返回了 22 条记录。如果您想查看正在显示的所有记录,请将它们显示在模板中。或者,您可以轻松地在控制器中以 XML 形式显示它们。
长话短说,您会看到所有查询。
I'm not sure I understand the question, but are you asking what the number after DB means? If so, it's the number of records returned.
Some sample output from my Mongrel server:
You see only 3 queries here, but 22 records are returned. If you want to see all of the records that are being shown, display them in your templates. Or, you could easily display them in XML in your controller.
Long story short, you are seeing all of the queries.