This is a bit of a generic ask, but my add-on stores associated records to a user by user_id. When surfacing up information, is it proper to use
If each finder for each user translates to a select * from xf_user table, that seems like a really expensive design / will hammer the database?
Thank you!
$finder = \XF::finder('XF:User'); $user = $finder->where('user_id', 1)->fetchOne();
within a foreach loop to get the associated user's information?If each finder for each user translates to a select * from xf_user table, that seems like a really expensive design / will hammer the database?
Entities, finders, and repositories | Developer Documentation | XenForo
Developer documentation for XenForo
xenforo.com
Thank you!