oldmanstan
February 25th, 2006, 03:44 AM
i have a mysql table that i want to pull rows out of and stuff them into objects in php. i can either query the DB and have it return a series of arrays with the values for each column (ex: $name[0] and $email[0] would be the values for the first row... etc.) or i could do several queries.
basically the question is which is more expensive in terms of server usage: one large query or several smaller queries?
my gut instinct tells me the large query would be better but i was wondering if anyone has any input?
basically the question is which is more expensive in terms of server usage: one large query or several smaller queries?
my gut instinct tells me the large query would be better but i was wondering if anyone has any input?