aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-10-02 13:29:17 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-10-02 13:29:17 +0900
commitf597822f4ae0c8068a3ab53d2744c6eadbb9897a (patch)
treec06ed388552236cd21aea48a7056752ba23e318d /guides
parent72f97e281059bc983eef5bc8915e53249c623dff (diff)
downloadrails-f597822f4ae0c8068a3ab53d2744c6eadbb9897a.tar.gz
rails-f597822f4ae0c8068a3ab53d2744c6eadbb9897a.tar.bz2
rails-f597822f4ae0c8068a3ab53d2744c6eadbb9897a.zip
add `cached` key to `sql.active_record` event [ci skip]
Follow up to #26584
Diffstat (limited to 'guides')
-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.