We have Azure-based SQL server in the elastic pool and our application is connected to it. Today, I deployed my .net core Web API on my personal desktop (not even on the server) and response time and CPU usage I can see is much better. When the same application I deployed on Azure server (App service), I saw huge utilization of CPU even 100% for some request. I am a little curious why this is happening? even when we have database server on azure only in both the case. Is there anything wrong which I am doing.
P.S: each request have a bulky operation (inserting 100k records or comparing thousands of spatial points)