Class: Riak::Multiget
- Inherits:
-
Object
- Object
- Riak::Multiget
- Defined in:
- lib/patches/db/riak.rb
Overview
riak-client 2.2.2 patches
Class Method Summary collapse
Class Method Details
.get_all(client, fetch_list) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/patches/db/riak.rb', line 7 def get_all(client, fetch_list) return get_all_without_profiling(client, fetch_list) unless SqlPatches.should_measure? start = Process.clock_gettime(Process::CLOCK_MONOTONIC) result = get_all_without_profiling(client, fetch_list) elapsed_time = SqlPatches.elapsed_time(start) record = ::Rack::MiniProfiler.record_sql("get_all size=#{fetch_list.size}", elapsed_time) result end |
.get_all_without_profiling ⇒ Object
6 |
# File 'lib/patches/db/riak.rb', line 6 alias_method :get_all_without_profiling, :get_all |