Can you replicate it locally? Can you show the code that is slow? If I understand you correctly, it is just 1 page that is slow? Can we see the page that is slow or is it behind a login?
query is fast | loading results in page VERY slow
Newish to Laravel.
Simple query: $participants = DB::table('users') ->where('course_serial', $serial) ->where('t_status', '<>', '') ->orderBy('Id', 'asc') ->get(['Id','first_name','last_name','email', 'phone','serial', 't_status']);
Query takes "0.010648012161255" - yet loading the 22 results the query returns in a blade view with @foreach takes +30 seconds ?!?
The entire Laravel application is very responsive and webpages load fast from a competent AWS server.
Any suggestions are greatly appreciated.
@X chris X and yet again, that might be because of some scripts that you have. Just create simple blade page without extending any of your styling/scripts and make sure that just drawing the table with the results really takes that slow..
Please or to participate in this conversation.