Database · Medium · ProWhat are selectivity and cardinality? How do they decide whether an index is used?DatabaseIndexingSeniorPerformance