Database · Medium · ProWhy is SELECT COUNT(*) slow on huge tables and what are the alternatives?DatabasePerformanceSeniorSQL