It would be great to be able to annotate sql with comments to tell where a 
query came from/or user/account runs it -> visible in slow query log and 
mysql status

User.where(xxx).comment("user.rb:11")
-> SELECT * FROM users WHERE xxx /* user.rb:11 */


User.where(xxx).comment("doing slow stuff in the console: do not kill")


does this sound good -> would a patch be accepted / did anyone already 
build something similar ?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-core/-/zZ6iZZ6hjMEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to