2 ms·
Joining and querying efficiently on relations is probably the most obvious omission.
by raziel2p 12y ago
Joining and querying efficiently on relations is probably the most obvious omission.
- iN7h33nD 12y agoDo you mean these two things? http://laravel.com/docs/5.0/eloquent#relationships http://laravel.com/docs/5.0/eloquent#relationships http://laravel.com/docs/5.0/eloquent#querying-relations http://laravel.com/docs/5.0/eloquent#querying-relations > EDIT and this for making them effective http://laravel.com/docs/5.0/eloquent#eager-loading http://laravel.com/docs/5.0/eloquent#eager-loading
- Ronsenshi 12y agoNever 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.