let's say i have a web app with 3000 books, all the info is in a DB, and let's say i need to recover all that info and show it on a webpage. which one of these two approches is better in terms of memory consumption?
- Recover the info from the DB, convert that info into 3000 Book Objects and parse all of them showing the html result.
- Just recover the info from the DB and parse directly the result array into html.
probably the question is "does creating lots of objects in PHP creates memory issues?"
thanks!