Acutally in .net LINQ you can do something called delay loading. It's actually hard for me to explain it so heres a quote from other site:
For a simple example of when I’d want to-do this, consider the “Category” entity class we modeled above. The categories table inside “Northwind” has a “Picture” column which stores a (potentially large) binary image of each category, and I only want to retrieve the binary image from the database when I’m actually using it (and not when doing a simply query just to list the category names in a list).
|
So as you can see, while the query is there, its not actually fetching the info until its acutally needed.
If your well advanced in PHP, you can somewhat try to create this but i have never seen it happen.
on the other hand, if you have < 1000 users/pics then give or take the site usage you should be okay.