Module: FastCount::Extensions::RelationExtension
- Defined in:
- lib/fast_count/extensions.rb
Instance Method Summary collapse
-
#estimated_count ⇒ Object
Returns an estimated number of rows that the query will return (without actually executing it).
Instance Method Details
#estimated_count ⇒ Object
Returns an estimated number of rows that the query will return (without actually executing it).
50 51 52 53 |
# File 'lib/fast_count/extensions.rb', line 50 def estimated_count adapter = Adapters.for_connection(connection) adapter.estimated_count(to_sql) end |