query_reviewer icon indicating copy to clipboard operation
query_reviewer copied to clipboard

Any chance of a Rails3 port?

Open tatyree opened this issue 14 years ago • 10 comments

Right now, if you try to use query reviewer with Rails3, you get the following error:

uninitialized constant ActiveRecord::ConnectionAdapters::MysqlAdapter

tatyree avatar Jul 22 '10 11:07 tatyree

I'm getting:

undefined method 'perform_action' for class ActionController::Base (NameError)

controller_extensions.rb:10

jpemberthy avatar Sep 01 '10 22:09 jpemberthy

+1 I'd love to see a port of this useful plugin : )

In the meantime, does anybody knows of a plugin that helps counting the number of sql queries performed? That was useful!

Thanks!

ariera avatar Oct 25 '10 13:10 ariera

Ariera, you can try:

grep "select|update|delete" --count development.log

Grep is very usefull in these cases

emoreth avatar Nov 29 '10 03:11 emoreth

nice! Tanks for the advice emoreth!

ariera avatar Nov 29 '10 07:11 ariera

Be aware only that this will match "updated_at" columns and stuff like that.

For my logs i need to run grep "SELECT |UPDATE |DELETE " --count development.log

Using it without --count will help seeing if they are matching what you need.

emoreth avatar Nov 29 '10 12:11 emoreth

Here's a version that's at least semi working with rails 3: https://github.com/jimneath/query_reviewer

ehudros avatar Dec 15 '10 10:12 ehudros

This was fixed in my fork (now merged with mainline)

nesquena avatar Apr 07 '11 03:04 nesquena

awesome, thanks :)

ehudros avatar Apr 07 '11 06:04 ehudros

http://weblog.rubyonrails.org/2011/12/6/what-s-new-in-edge-rails-explain

plentz avatar Feb 25 '12 21:02 plentz

Rails 3 support: https://github.com/nesquena/query_reviewer

sadjow avatar Aug 12 '13 18:08 sadjow