aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Moss <maclover7@users.noreply.github.com>2016-10-02 08:36:40 -0400
committerGitHub <noreply@github.com>2016-10-02 08:36:40 -0400
commitda0fdd6bf529df8806ddb4b97e4bb31c95249e0e (patch)
tree5f5096d3baa14108f2ac64700e49d29bfbda7b23
parent7b63f56ce0c708f05db31de04b8cd2dc6e4ef96b (diff)
parentf597822f4ae0c8068a3ab53d2744c6eadbb9897a (diff)
downloadrails-da0fdd6bf529df8806ddb4b97e4bb31c95249e0e.tar.gz
rails-da0fdd6bf529df8806ddb4b97e4bb31c95249e0e.tar.bz2
rails-da0fdd6bf529df8806ddb4b97e4bb31c95249e0e.zip
Merge pull request #26683 from y-yagi/add_cached_key_to_sql_active_record_event
add `cached` key to `sql.active_record` event [ci skip]
-rw-r--r--guides/source/active_support_instrumentation.md13
1 files changed, 7 insertions, 6 deletions
diff --git a/guides/source/active_support_instrumentation.md b/guides/source/active_support_instrumentation.md
index 03af3cf819..3fc9d9bfa9 100644
--- a/guides/source/active_support_instrumentation.md
+++ b/guides/source/active_support_instrumentation.md
@@ -231,12 +231,13 @@ Active Record
### sql.active_record
-| Key | Value |
-| ---------------- | --------------------- |
-| `:sql` | SQL statement |
-| `:name` | Name of the operation |
-| `:connection_id` | `self.object_id` |
-| `:binds` | Bind parameters |
+| Key | Value |
+| ---------------- | ---------------------------------------- |
+| `:sql` | SQL statement |
+| `:name` | Name of the operation |
+| `:connection_id` | `self.object_id` |
+| `:binds` | Bind parameters |
+| `:cached` | `true` is added when cached queries used |
INFO. The adapters will add their own data as well.