public
Description: This rails plugin not only runs "EXPLAIN" before each of your select queries in development, but provides a small DIV in the rendered output of each page with the summary of query warnings that it analyzed.
Homepage: http://code.google.com/p/query-reviewer/
Clone URL: git://github.com/dsboulder/query_reviewer.git
query_reviewer / query_reviewer_defaults.yml
100644 39 lines (29 sloc) 0.716 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
all:
    inject_view: true
    stack_trace_lines: 3
    trace_includes_vendor: false
    trace_includes_lib: true
    profiling: enabled
    production_data: true
    max_safe_key_length: 100
    disable_sql_cache: true
 
    warn_severity: 3
    critical_severity: 7
 
    warn_select_count: 20
    critical_select_count: 50
 
    warn_update_count: 5
    critical_update_count: 10
 
    warn_insert_count: 5
    critical_insert_count: 10
 
    warn_delete_count: 5
    critical_delete_count: 10
 
    warn_duration_threshold: 0.2
    critical_duration_threshold: 1.0
 
    warn_affected_rows: 10
    critical_affected_rows: 100
 
development:
    enabled: true
 
production:
    enabled: false
 
test:
    enabled: false