17th September, 2018
@Snapey im trying to get all polls with all it's options and answers using eager loading,, here is the using Poll::with('options','answers')->get()
@Snapey it was huge for me :D what more details i can share?
im working on polls script i have 3 tables which are polls , options , answers i have 942 poll ,, 10 options for each poll ,, and around 5000 answer for each option in the problem comes with calling data using eager loading the request takes too long ,, any ideas for optimizing the script?
Want to change your profile photo? We pull from gravatar.com.