Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クエリに既にステートメントCOUNT(*)がある場合、MySQL のパフォーマンスに重大な影響があります。GROUP BY
COUNT(*)
GROUP BY
テーブル エンジンは InnoDB です。
EXPLAIN SELECT <...>同じ出力を提供します。
EXPLAIN SELECT <...>
の出力explainが同じである場合、違いはありません。とにかく、行を数えることはパフォーマンスに大きな影響を与えません。
explain