Mysql – SQL query performance drops significantly with large datasets and multiple joins
I have a SQL query when joining several large tables. My database consists of millions of rows across the users, orders and transactions table. Here is the query SELECT u.name, COUNT(o.id) AS order_count FROM users u JOIN orders o ON…