method

global_thread_pool_async_query_executor

rails latest stable - Class: ActiveRecord

Method not available on this version

This method is only available on newer versions. The first available version (v7.0.0) is shown here.

global_thread_pool_async_query_executor()
public

No documentation available.

# File activerecord/lib/active_record.rb, line 216
  def self.global_thread_pool_async_query_executor # :nodoc:
    concurrency = global_executor_concurrency || 4
    @global_thread_pool_async_query_executor ||= Concurrent::ThreadPoolExecutor.new(
      min_threads: 0,
      max_threads: concurrency,
      max_queue: concurrency * 4,
      fallback_policy: :caller_runs
    )
  end