Module: MassiveRecord::ORM::QueryInstrumentation::ClassMethods

Defined in:
lib/massive_record/orm/query_instrumentation.rb

Instance Method Summary collapse

Instance Method Details

#do_find(*args) ⇒ Object

do_find is the method which all find operations goes through. For instrumentation on the query only see hbase_query_all_first /hbase_query_find



12
13
14
15
16
17
18
19
20
# File 'lib/massive_record/orm/query_instrumentation.rb', line 12

def do_find(*args)
  ActiveSupport::Notifications.instrument("load.massive_record", {
    :name => [model_name, 'load'].join(' '),
    :description => "",
    :options => args
  }) do
    super
  end
end