HasEstimatedCount
trait HasEstimatedCount
Methods
static int
estimatedCount()
Get an estimated count of all rows from pg_class statistics.
Details
at line 17
static int
estimatedCount()
Get an estimated count of all rows from pg_class statistics.
This is much faster than a full table scan of a large table.
Falls back to an exact count if no statistics are available.