antiemptyv Posted November 11, 2006 Share Posted November 11, 2006 is it more efficient to get all the information you can about a user, say, and create an object and pass the information around like that while you're outputting the user information or pull the information from the database as you use it? Link to comment https://forums.phpfreaks.com/topic/26945-speed-passing-objects-vs-multiple-mysql-queries/ Share on other sites More sharing options...
fenway Posted November 12, 2006 Share Posted November 12, 2006 If you mean pulling individual fields vs. an entire record, I think it's obvious that the latter is better. Of course, for large recordsets, you may not need all of the fields. Link to comment https://forums.phpfreaks.com/topic/26945-speed-passing-objects-vs-multiple-mysql-queries/#findComment-123407 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.