Take User min and max IDs only one time for all counters
Most of the distinct counters are on user ID
For example https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/lib/ee/gitlab/usage_data.rb
Could we take one single time MIN and MAX user ID at the begining and use it for all the counters?
We could have that one single query for MIN and one for MAX
Result of discussion from here !27589 (comment 312237472)
Edited by Alina Mihaila