- 浏览: 149323 次
- 性别:
- 来自: 北京
文章分类
最新评论
引用网址
http://github.com/dsboulder/query_reviewer
http://code.google.com/p/query-reviewer/
项目很大 经常要分析数据库 看查询时间
这个插件不仅是分析数据库 还可以在页面上修改 方便测试人员和编码人员
1 拷贝附件
\vendor\plugins\文件夹下
2 rake query_reviewer:setup
完毕
英文简介
README
QueryReviewer
=============
QueryReviewer is an advanced SQL query analyzer. It accomplishes the following goals:
* View all EXPLAIN output for all SELECT queries to generate a page (and optionally SHOW PROFILE ALL)
* Rate a page's SQL usage into one of three categories: OK, WARNING, CRITICAL
* Attach meaningful warnings to individual queries, and collections of queries
* Display interactive summary on page
All you have to do is install it. You can optionally run:
rake query_reviewer:setup
Which will create config/query_reviewer.yml, see below for what these options mean. If you don't have a config file,
the plugin will use the default in vendor/plugins/query_reviewer.
Configuration
=============
The configuration file allows you to set configuration parameters shared across all rails environment, as well as
overriding those shared parameteres with environment-specific parameters (such as disabling analysis on production!)
* enabled: whether any output or query analysis is performed. Set this false in production!
* inject_view: controls whether the output automatically is injected before the </body> in HTML output.
* profiling: when enabled, runs the MySQL SET PROFILING=1 for queries longer than the warn_duration_threshold / 2.0
* production_data: whether the duration of a query should be taken into account (if you don't have real data, don't let
query duration effect you!)
* stack_trace_lines: number of lines of call stack to include in the "short" version of the stack trace
* trace_includes_vendor: whether the "short" verison of the stack trace should include files in /vendor
* trace_includes_lib: whether the "short" verison of the stack trace should include files in /lib
* warn_severity: the severity of problem that merits "WARNING" status
* critical_severity: the severity of problem that merits "CRITICAL" status
* warn_query_count: the number of queries in a single request that merits "WARNING" status
* critical_query_count: the number of queries in a single request that merits "CRITICAL" status
* warn_duration_threshold: how long a query must take in seconds (float) before it's considered "WARNING"
* critical_duration_threshold: how long a query must take in seconds (float) before it's considered "CRITICIAL"
Example
=======
If you disable the inject_view option, you'll need to manually put the analyzer's output into your view:
<%= query_review_output %>
Copyright (c) 2007-2008 Kongregate & David Stevenson, released under the MIT license
http://github.com/dsboulder/query_reviewer
http://code.google.com/p/query-reviewer/
项目很大 经常要分析数据库 看查询时间
这个插件不仅是分析数据库 还可以在页面上修改 方便测试人员和编码人员
1 拷贝附件
\vendor\plugins\文件夹下
2 rake query_reviewer:setup
完毕
英文简介
README
QueryReviewer
=============
QueryReviewer is an advanced SQL query analyzer. It accomplishes the following goals:
* View all EXPLAIN output for all SELECT queries to generate a page (and optionally SHOW PROFILE ALL)
* Rate a page's SQL usage into one of three categories: OK, WARNING, CRITICAL
* Attach meaningful warnings to individual queries, and collections of queries
* Display interactive summary on page
All you have to do is install it. You can optionally run:
rake query_reviewer:setup
Which will create config/query_reviewer.yml, see below for what these options mean. If you don't have a config file,
the plugin will use the default in vendor/plugins/query_reviewer.
Configuration
=============
The configuration file allows you to set configuration parameters shared across all rails environment, as well as
overriding those shared parameteres with environment-specific parameters (such as disabling analysis on production!)
* enabled: whether any output or query analysis is performed. Set this false in production!
* inject_view: controls whether the output automatically is injected before the </body> in HTML output.
* profiling: when enabled, runs the MySQL SET PROFILING=1 for queries longer than the warn_duration_threshold / 2.0
* production_data: whether the duration of a query should be taken into account (if you don't have real data, don't let
query duration effect you!)
* stack_trace_lines: number of lines of call stack to include in the "short" version of the stack trace
* trace_includes_vendor: whether the "short" verison of the stack trace should include files in /vendor
* trace_includes_lib: whether the "short" verison of the stack trace should include files in /lib
* warn_severity: the severity of problem that merits "WARNING" status
* critical_severity: the severity of problem that merits "CRITICAL" status
* warn_query_count: the number of queries in a single request that merits "WARNING" status
* critical_query_count: the number of queries in a single request that merits "CRITICAL" status
* warn_duration_threshold: how long a query must take in seconds (float) before it's considered "WARNING"
* critical_duration_threshold: how long a query must take in seconds (float) before it's considered "CRITICIAL"
Example
=======
If you disable the inject_view option, you'll need to manually put the analyzer's output into your view:
<%= query_review_output %>
Copyright (c) 2007-2008 Kongregate & David Stevenson, released under the MIT license
- query_reviewer.rar (20.5 KB)
- 下载次数: 0
发表评论
-
Google App Engine and others
2010-09-15 11:27 823有用的技术文章 先记载 有空 研究下 さくっとRails ... -
基于jquery和mini_magick的图片裁剪
2010-09-15 11:07 1475引用网址 http://duyouhua1214.iteye ... -
ruby gem相关命令使用
2010-08-26 12:45 1603gem相关命令使用 1.显示gem的帮助和版本 gem – ... -
深入理解alias, alias_method和alias_method_chain
2010-08-06 17:14 972http://blackanger.blog.51cto.co ... -
Rails 3 特点
2010-08-06 16:38 923真的想留下来 http://railslove.com/w ... -
Fix N+1 Queries
2010-08-06 16:16 918http://rails-bestpractices.com/ ... -
request-log-analyzer log分析工具
2010-08-06 12:03 1621参考网址: http://github.com/wvanber ... -
IE7 Bug导致Rails Session保存失败
2010-08-06 10:56 976http://www.letrails.cn/archives ... -
Rails保存记录而不更新时间戳
2010-08-06 10:54 1356引用地址: http://www.letrails.cn/a ... -
how to generate qrcode on ror
2010-02-04 16:27 8751. In your rails project, in ... -
rmagick ror 上 安装
2009-11-18 09:06 860rmgick 安装规范 ror很多人现在在用了,但是发现 ... -
Update Rails to 2.2.2 (Rails 2.2.2)
2009-03-08 14:53 990gem install -v=2.2.2 rails Suc ... -
Use helpers in controllers or models
2009-01-19 16:22 930引用http://snipplr.com/view/2505/ ... -
open-flash-chart
2008-11-07 14:07 2438http://pullmonkey.com/2008/7/23 ... -
rake db:migrate
2008-11-07 11:58 1281【ruby on rails】rake db:migrate ... -
rss maker
2008-11-07 11:43 1096http://gdgdlog.net/log/show/130 ... -
acts_as_authenticated
2008-11-07 11:35 1123ruby script/plugin install act ... -
validates
2008-11-07 11:24 1071先週ずっとインフルエンザでダウンしてました。 今日はvail ... -
rails で model の変更を監視するプラグイン
2008-11-07 11:12 1367acts_as_modified モデルの変更を監視して、各 ... -
exception_notification
2008-11-07 11:03 12131 applicattion.rb 配置 incl ...
相关推荐
`mypy-boto3-codeguru-reviewer-1.16.49.0`这个特定版本的库,意味着它包含了针对CodeGuru Reviewer的最新特性和改进。可能包括增强的类型检查支持,提高与AWS服务的兼容性,以及修复已知的问题。使用这个版本,...
《PyPI官网下载的mypy-boto3-codeguru-reviewer-1.14.41.0.tar.gz解析》 PyPI(Python Package Index)是Python开发者们广泛使用的资源库,它为Python社区提供了丰富的第三方软件包。在这个场景中,我们关注的是名...
资源分类:Python库 所属语言:Python 资源全名:mypy-boto3-codeguru-reviewer-1.16.0.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
$ # Note that you may need to quote it in the shell to escape the string $ akochan-reviewer " https://tenhou.net/0/?log=2019050417gm-0029-0000-4f2a8622&tw=2 " $ # Review ...
代码审查员2 Code Reviewer是用于进行匿名同行评审的在线平台,旨在帮助学生通过向同行学习来编写更好的代码。 产品特点 代码审查(匿名审查同行的代码) ...cd code-reviewer-2.0 // install front-end depend
2014 年 4 月 23 日,Joy Neop 在知乎添加了一个问题「知乎是否应该添加拼写检查,对用户高亮显示识别出的拼写错误并要求在发布时输入验证码如果用户不改正拼写?」目标:修正知乎的问题里的 typos。...
添加审阅者动作此操作将审阅者... - uses: actions/checkout@master - name: Add reviewer to PR uses: estensen/add-reviewer-action@master with: username: 'estensen' github_token: ${{ secrets.GITHUB_TOKEN }}
语言:中文 (简体) Improve the code review experience of the gitlab project用于在review gitlab项目时折叠不需要review的代码块。
用法 - name: Add Pull Request Reviewer uses: AveryCameronUofR/add-reviewer-gh-action@1.0.3 with: reviewers: "AveryCameronUofR" token: ${{ secrets.GITHUB_TOKEN }}动作输入名称描述默认token GITHUB_TOKEN...
要求MySQL v8.0.19 节点v10.16.3 纱线v1.19.0 入门(第一次) yarn # Run in project root to install all node dependencies开始申请yarn start # Run in project root to start code reviewer app 这将部署@code-...
资源分类:Python库 所属语言:Python 资源全名:mypy-boto3-codeguru-reviewer-1.18.60.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源分类:Python库 所属语言:Python 资源全名:mypy-boto3-codeguru-reviewer-1.17.105.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源分类:Python库 所属语言:Python 资源全名:mypy-boto3-codeguru-reviewer-1.18.23.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
对于通用内核,请使用以下命令运行解析器:./reviewer.py --release xenial 对于hwe / edge内核,请使用以下命令运行它:./reviewer.py --release xenial --hwe 如果要获取失败的测试用例的链接,只需在命令中添加-...
Leverage the power of Gerrit Code Review to make software development more cooperative and social Overview Understand the concepts of collective code review using Gerrit through a set of simple ...
Amazon CodeGuru Reviewer示例应用程序该应用程序旨在作为Amazon CodeGuru Reviewer的测试用例,该服务使用程序分析和机器学习来检测代码中的潜在缺陷。 该示例的实现故意不理想,无法证明CodeGuru Reviewer提供建议...
从【压缩包子文件名称】“lto-exam-reviewer-master”来看,这可能是一个GitHub项目的源码仓库,"master"分支通常是项目的主要分支,包含了项目的核心代码和资源。下载并解压这个压缩包后,我们可以期待找到项目结构...
"assign-reviewer" 这个标题指的是一个脚本,它的主要功能是进行审阅者的随机分配,并且能生成包含评分的Excel表格。这个脚本可能被用于学术论文、项目评审或者任何形式的工作评估流程中,帮助组织者公平、高效地...