Class: Riak::Multiget

Inherits:
Object
  • Object
show all
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



5
6
7
8
9
10
11
12
13
14
# File 'lib/patches/db/riak.rb', line 5

def get_all(client, fetch_list)
  return get_all_without_profiling(client, fetch_list) unless SqlPatches.should_measure?

  start        = Time.now
  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_profilingObject



4
# File 'lib/patches/db/riak.rb', line 4

alias_method :get_all_without_profiling, :get_all