php - Difference in efficiency of retrieving all rows in one query, or each row individually? -


I have a database in which nearly 200 rows of data need to be recovered. How important I am, if everything is the same In the query, there is a difference in skill when retrieving them all at once, then individually each row in different questions?

The question is usually done through a socket, so executing 200 questions instead of 1 Demonstrates too much overhead, as well as RDBMS is optimized to get multiple rows for a query. Instead of

1, initialize RDBMS dataset to 200 questions, parse query, get a line, populate datasets and send results 200 times instead of 1 time.

It is much better to execute only one query


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -