Cardinality Issues at Scale and How to Tackle Them