MySQL query optimization and EXPLAIN for a noob
问题 I've been working with databases for a long time but I'm new to query optimization. I have the following query (some of it code-generated): SELECT DISTINCT COALESCE(gi.start_time, '') start_time, COALESCE(b.name, '') bank, COALESCE(a.id, '') account_id, COALESCE(a.account_number, '') account_number, COALESCE(at.code, '') account_type, COALESCE(a.open_date, '') open_date, COALESCE(a.interest_rate, '') interest_rate, COALESCE(a.maturity_date, '') maturity_date, COALESCE(a.opening_balance, '')