加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 在6427ms(查看:6279,DB:96)中完成数据库是什

发布时间:2020-12-17 02:28:30 所属栏目:百科 来源:网络整理
导读:我正在努力减轻页面负载,我很好奇数据库在…中: Completed in 6427ms (View: 6279,DB: 96) ……意思是? 因为6279 96!= 6427ms 解决方法 引用 rails guide: Completed in 5ms (View: 2,DB: 0) | 200 OK [http://0.0.0.0/items] This data is fairly strai
我正在努力减轻页面负载,我很好奇数据库在…中:

Completed in 6427ms (View: 6279,DB: 96)

……意思是?

因为6279 96!= 6427ms

解决方法

引用 rails guide:

Completed in 5ms (View: 2,DB: 0) | 200 OK [http://0.0.0.0/items]

This data is fairly straightforward to understand. Rails uses millisecond(ms) as the metric to measure the time taken. The complete request spent 5 ms inside Rails,out of which 2 ms were spent rendering views and none was spent communication with the database. It’s safe to assume that the remaining 3 ms were spent inside the controller.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读