複数の mysql クエリと 1 つの複雑なクエリの速度の違いは何ですか? 違いはありますか?ベンチマークやヒントはありますか?
例
"SELECT *, ( SELECT COUNT(DISTINCT stuff) FROM stuff where stuff.id = id) as stuff, ( SELECT SUM(morestuff) FROM morestuff where morestuff.id = id) as morestuff, (SELECT COUNT(alotmorestuff) FROM alotmorestuff where alotmorestuff.id = id) as alotmorestuff FROM inventory, blah WHERE id=id"
対それぞれの単一選択クエリ。