ALL TOOLS
EXP-033 // DOWNFORCE

DOWNFORCE

Paste the queries one page runs and see where it's losing grip: N+1 loops, the same query fetched again and again, slow queries and missing indexes, each with the Eloquent or migration code to fix it.

Read in your browser. Nothing is uploaded.
Where do I get the queries?
  • Laravel Debugbar: open the Queries tab and copy the list.
  • Telescope: the Queries screen for one request.
  • Anywhere: log them for one request, then paste from laravel.log.
    DB::listen(fn ($q) => logger($q->sql, [...$q->bindings, 'time' => $q->time]));
  • MySQL slow query log: paste it as it is.