method
async_count_by_sql
rails latest stable - Class:
ActiveRecord::Querying
async_count_by_sql(sql)public
Same as #count_by_sql but perform the query asynchronously and returns an ActiveRecord::Promise.
async_count_by_sql(sql)Same as #count_by_sql but perform the query asynchronously and returns an ActiveRecord::Promise.