MySQL 2 min read
Choose a MySQL composite index from the query you actually run
A tenant's invoice list filters by tenant, filters by status, and orders by creation time. Adding separate indexes to every column is not automatically the best answer. Start with...
