Support the ongoing development of Laravel.io →
posted 9 years ago
Database

i just created a api using Lumen whern i tried it in localhost using the phpmyadmin database the response time of the api was 120ms now when i changed the environment and ran the same file using a new database on my server the response time has increased to 3174ms this is a huge difference .

The issue is with the database i think, but how do i improve the response time, is there something that i am missing

Please advice

Last updated 3 years ago.
0

without knowing anything about your setup/project/db cant really say? maybe install debugbar & see the timings of queries... & application in general..

  1. index db
  2. cache queries
  3. use different queries structure/syntax
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.