What is the difference in performance of making a single database (MySql) call that retrieves 10 results versus making 10 single db calls to retrieve those results individually?
If one is better than the other, is there a way I can go about to test the performance between the two? (I’m just curious because in the future if I have another question on performance, I could use the suggested way to test it out myself)
A single call will always be faster than several calls for the same data. Simply the network turn around and latency alone is a component, but also the start up and tear down of the SQL processing will have some impact.