Welcome Guest, Not a member yet? Register   Sign In
Roster: Relation Name Lookup
#5

> isn't it a little bit over engineered

I suppose some may feel so. I tend to use libraries like project-level traits: reusable components to prevent duplicating code. In this case the concept was developed on a project using Firestore (NoSQL) where joins are not possible so looking up a single field for related items can be very costly. The flip side is that bulk reads of subcollections are cheap, so being able to load and cache the field all at once is a huge performance gain.
For sure there are other ways to handle this, but I think regardless of your backend database this will be the most efficient for 95% of the scenarios that match the description.
Reply


Messages In This Thread
Roster: Relation Name Lookup - by MGatner - 09-28-2021, 08:43 AM
RE: Roster: Relation Name Lookup - by InsiteFX - 09-29-2021, 03:50 AM
RE: Roster: Relation Name Lookup - by paliz - 09-30-2021, 02:54 AM
RE: Roster: Relation Name Lookup - by includebeer - 10-05-2021, 03:37 PM
RE: Roster: Relation Name Lookup - by MGatner - 10-07-2021, 04:54 AM
RE: Roster: Relation Name Lookup - by includebeer - 10-07-2021, 06:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB