PERF: stop using exec which is blocking for direct sql
This commit is contained in:
parent
34d35923d0
commit
b7037808bb
|
@ -4,7 +4,7 @@ class ActiveRecord::Base
|
|||
def self.exec_sql(*args)
|
||||
conn = ActiveRecord::Base.connection
|
||||
sql = ActiveRecord::Base.send(:sanitize_sql_array, args)
|
||||
conn.raw_connection.exec(sql)
|
||||
conn.raw_connection.async_exec(sql)
|
||||
end
|
||||
|
||||
def self.exec_sql_row_count(*args)
|
||||
|
|
Loading…
Reference in New Issue