From 37886a04e7248338522cbbf1fe7d31abb5cc46b8 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 10 Jun 2019 11:06:25 -0700 Subject: [PATCH] Remove call to object_id Calling object_id is going to get more expensive in Ruby 2.7. Also we're using this for `id2ref` which is going to be deprecated --- .../active_record/connection_adapters/abstract/query_cache.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb b/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb index a7753e3e9c..96afd4a20e 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb @@ -134,7 +134,6 @@ module ActiveRecord binds: binds, type_casted_binds: -> { type_casted_binds(binds) }, name: name, - connection_id: object_id, cached: true } end