dimitri16h / fleet

Capstone Project - Full Stack App created with Laravel - features PHP backend & Vue.js frontend
https://bootcamp-s18-fleet.herokuapp.com/
0 stars 0 forks source link

N+1 Queries in Controllers #12

Open dimitri16h opened 6 years ago

dimitri16h commented 6 years ago

Currently, multiple controllers are making n+1 query calls to access relational data. Laravel offers eager loading by using the "with" method. This will not be a performance issue for small amounts of data, and is not immediately important, but should be changed in the future.