Description of problem: this bz will track the fix to remove the DISTINCT that was put into place due to the upstream meta data with the server/channels in bz 1021057. While this fixed the duplicates it introduced a terrible performance penalty for larger Satellite client counts. There is more detail history in a wiki that I will post separately.
Following files affected: backend/satellite_tools/rhn-entitlement-report backend/satellite_tools/satCerts.py schema/spacewalk/oracle/packages/rhn_channel.pkb schema/spacewalk/oracle/packages/rhn_entitlements.pkb schema/spacewalk/postgres/packages/rhn_channel.pkb schema/spacewalk/postgres/packages/rhn_entitlements.pkb NOTE: This affects entitlement-counting. Since we don't do that any more in Spacewalk, *there is no upstream fix*
Reverified sanity-only using steps from comment 6 and automation with compose from 2017-06-09.