HLL BatchDistinctCounter uses relation connection
What does this MR do and why?
Change BatchDistinctCounter
to use the connection from the passed-in relation, rather than ActiveRecord::Base.connection
directly. This makes the code compatible with multiple databases.
Related to #345284 (closed)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Patrick Bair