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:

enter image description here


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -