diff options
author | Daniel Schierbeck <dasch@zendesk.com> | 2013-05-10 16:21:59 +0200 |
---|---|---|
committer | Daniel Schierbeck <dasch@zendesk.com> | 2013-05-10 16:50:35 +0200 |
commit | a33d320cf4b57fabd9c299b09c217ee3955ecc77 (patch) | |
tree | f21afe2bf9633cfb28623c038cc68488119e9adc /activerecord/lib | |
parent | 9d7a748a5174224ead4d44aedc3849d1d1e37b18 (diff) | |
download | rails-a33d320cf4b57fabd9c299b09c217ee3955ecc77.tar.gz rails-a33d320cf4b57fabd9c299b09c217ee3955ecc77.tar.bz2 rails-a33d320cf4b57fabd9c299b09c217ee3955ecc77.zip |
Don't try to EXPLAIN select_db calls
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/explain_subscriber.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/explain_subscriber.rb b/activerecord/lib/active_record/explain_subscriber.rb index 859c8edfc5..1d861a57db 100644 --- a/activerecord/lib/active_record/explain_subscriber.rb +++ b/activerecord/lib/active_record/explain_subscriber.rb @@ -15,7 +15,7 @@ module ActiveRecord # On the other hand, we want to monitor the performance of our real database # queries, not the performance of the access to the query cache. IGNORED_PAYLOADS = %w(SCHEMA EXPLAIN CACHE) - EXPLAINED_SQLS = /\A\s*(select|update|delete|insert)/i + EXPLAINED_SQLS = /\A\s*(select|update|delete|insert)\b/i def ignore_payload?(payload) payload[:exception] || IGNORED_PAYLOADS.include?(payload[:name]) || payload[:sql] !~ EXPLAINED_SQLS end |