Skip to content

Instantly share code, notes, and snippets.

@raphaelcm
Created May 30, 2012 13:37
Show Gist options
  • Select an option

  • Save raphaelcm/2836370 to your computer and use it in GitHub Desktop.

Select an option

Save raphaelcm/2836370 to your computer and use it in GitHub Desktop.

Revisions

  1. raphaelcm revised this gist May 30, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion slow_rails_queries
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    tail -n 10000 log/development.log | egrep '(Load|SQL|AREL|Request) \([2-9][0-9]{2,}.[0-9]ms\)'
    tail -n 10000 log/development.log | egrep -n '(Load|SQL|AREL|Request) \([2-9][0-9]{2,}.[0-9]ms\)'
  2. raphaelcm revised this gist May 30, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion slow_rails_queries
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    tail -n 10000 log/development.log | egrep '(Load|SQL|AREL) \([2-9][0-9]{2,}.[0-9]ms\)'
    tail -n 10000 log/development.log | egrep '(Load|SQL|AREL|Request) \([2-9][0-9]{2,}.[0-9]ms\)'
  3. raphaelcm created this gist May 30, 2012.
    1 change: 1 addition & 0 deletions slow_rails_queries
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    tail -n 10000 log/development.log | egrep '(Load|SQL|AREL) \([2-9][0-9]{2,}.[0-9]ms\)'