Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Created April 4, 2017 08:31
Show Gist options
  • Save zulhfreelancer/31069c27b99a1f8888eb41e46a70863a to your computer and use it in GitHub Desktop.
Save zulhfreelancer/31069c27b99a1f8888eb41e46a70863a to your computer and use it in GitHub Desktop.
How to know Rails DB pool from Rails console?

Code

ActiveRecord::Base.connection_pool.instance_eval { @size }

Example

ActiveRecord::Base.connection_pool.instance_eval { @size }
# => 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment