Redundant User Queries...
Just to display the name and photo of the user that created a discussion, Vanilla (checked with 2.2 master) performs 4 redundant user queries - and that is even after applying this fix: https://github.com/vanilla/vanilla/pull/2916
The user is queried two times via
Gdn::userModel->getID() and two times via
The user queries probably don't hit the database since there is Gdn::cache() - still, I see room for improvement here...