A hundred and one queries for one page
A page lists 100 posts and each post's author name. The database log shows 101 queries: one for the posts, then one per post for its author.
What has happened, and what fixes it?
A page lists 100 posts and each post's author name. The database log shows 101 queries: one for the posts, then one per post for its author.
What has happened, and what fixes it?