php - Load time is very slow in API while fetching data in Laravel -
i using simple query list users in laravel.
this query using in eloquent:
$user = user::find(1);
i required data, time more 1.3 second. while using same in doctrine loads data in 300 ms.
is there issue of eloquent in laravel???
go [your project dir]->laravel->app->config.php , change
'url' => '127.0.0.1'
instead of localhost , see if makes difference.
if doesn't work can install clockwork laravel provide timeline of whats taking long.
here's example of timeline talking about:
Comments
Post a Comment