I am in developer mode in Rails.
I am trying to insert a binary data record into a DB using AR.
Edoc.create(
:id_claim => @claim_index,
:id_material => @doc_code,
:size => @file_list.first[:size],
:efile => params[:files][0].read
)
But this takes a lot of time because Rails logs this request with all the contents of the file.
How to disable logging of specific queries?
source
share