When executing a query in a dotnet 8 api running on Windows 11 via Visual Studio or a Linux container on Kubernetes, it takes too long to get the result, an average of 1.30 seconds. However, when I execute it on a Windows 10 machine, it runs in seconds. Has anyone experienced anything similar?
NOTE: There is no network problem! When executing directly in the Mongo Shell, it works perfectly and the environments are matched in terms of variables and hardware.