benchmark neo4j /search_users
This commit is contained in:
parent
cb344665cb
commit
4eb009d76d
|
|
@ -104,7 +104,18 @@ class ApiSearchController < ApiController
|
|||
latency_high = ActiveRecord::Type::Boolean.new.type_cast_from_user(params[:latency_high])
|
||||
|
||||
begin
|
||||
@latency_data = users_latency_data(latency_good, latency_fair, latency_high)
|
||||
|
||||
bm = Benchmark.measure do
|
||||
@latency_data = users_latency_data(latency_good, latency_fair, latency_high)
|
||||
end
|
||||
Rails.logger.info "benchmark neo4j"
|
||||
Rails.logger.info "*" * 50
|
||||
Rails.logger.info bm
|
||||
|
||||
Bugsnag.notify("benchmark neo4j: " + bm.to_s) do |report|
|
||||
report.severity = "info"
|
||||
end
|
||||
|
||||
#debugger
|
||||
user_ids = @latency_data.map{ |l_data| l_data[:user_id] }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue