Which one is faster single big query or few small queries?
问题 So I want to grab data from database, which method is faster, create several queries or one multi-query ? 回答1: Each "round trip" to the database will have some overhead. So the fewer round-trips, the less overhead. Consider also that fewer requests means fewer packets from client to server. If the result of the consolidated query gives you just what you want, then single query is the way to go. If your single query is returning extra or redundant data (perhaps because of de-normalization)