Postgres HLL counting should support multiple databases
The BatchDistinctCounter
uses ActiveRecord::Base.connection
directly, rather than the correct connection for the tables which it is counting.
This needs to be updated to work with multiple databases.
Edited by Patrick Bair