Hacker News new | past | comments | ask | show | jobs | submit login

I think the general idea is that it's a graph rather than relations.

You "join" by using the parent ID (e.g. employerID of parent container to get employees). This can (and often) introduces an n+1 problem unless you watch for it and use dataloaders.

Not saying this is great or anything. :)




Thanks. The issue is what if I want to pull all the employees from the table of all customers, to determine how many employees have made purchases under our employee-discount plan?

I just made that up as something that would likely require a join without really thinking it through too much...




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: