Regarding too much time in api calls

Dev_tan3 years ago
reports/route?deviceId=26&from=2022-08-20T11:03:16Z&to=2022-08-25T11:03:16Z

when I am hitting this api I am getting response time 20 sec which is making our user experinece bad
resources we have provided 1gb ram database size is 25 gb and devices we have in our server is 80.

Anton Tananaev3 years ago

1GB is very low for that number of devices. Also everything depends on how much data you get in that report. How many items?

Dev_tan3 years ago

Actually we are using 2 gb ram and around 1 gb is available free. And we also created one more server which has only one device in that we are getting responses time around 10 sec.
what can be a issue?

Anton Tananaev3 years ago

Check the database query. I suspect it's just slow.

Are you using SSD drives?

Dev_tan3 years ago

yes we are using ssd

Dev_tan3 years ago

can you help me out to find the solution because I am still struggling to find the solution

Anton Tananaev3 years ago

Have you checked the SQL request?