MySQL
次のデータを持つテーブルを使用しています。
users(ID, name, email, create_added) (about 10000 rows)
points(user_id, point) (about 15000 rows)
そして私の質問:
SELECT u.*, SUM(p.point) point
FROM users u
LEFT JOIN points p ON p.user_id = u.ID
WHERE u.id > 0
GROUP BY u.id
ORDER BY point DESC
LIMIT 0, 10
最高のポイントを持つ上位 10 人のユーザーのみを取得しますが、その後死亡します。クエリのパフォーマンスを向上させるにはどうすればよいですか?