# 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