Proactive Count

Gem Version

Row Estimation for Active Record - PostgreSQL only.

Usage

User.pcount # => 1000_000

How does it work

Installation

Add this line to your application's Gemfile:

gem "proactive_count"

And then execute:

$ bundle

Or install it yourself as:

$ gem install proactive_count

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/JuanitoFatas/proactive_count.

License

The gem is available as open source under the terms of the Apache License 2.0.