Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Never had any problems with Eloquent relations and querying on them. I find them very powerful.

Yes, they aren't done in a single query format - which should be a problem since it may be faster just to do two simple queries then one complex.

Besides that relations could be eager loaded for when you have number of items in first query and want to load relations to all of them. With eager loading you won't have problems with N + 1 queries.



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

Search: