DRF list api response so slow and cause CPU throttling
“<p>An API in my project works fine locally but when it is called in production, it slows the application's response time (all other APIs) and the container workload gets throttled for about 10 seconds.</p>
<p>here is my model.py:</p>
<pre><code>class Event(BaseModel):
user = models.ForeignKey(Us”
stackexchange · sajad · 11/20/2024
Open original →How can I diagnose slow response times from Google App Engine and Django to serve a web app?
“<p>I've deployed a Django based portfolio website - <a href="http://johnmcgurk.no" rel="nofollow noreferrer">http://johnmcgurk.no</a> - on App Engine and I am struggling to diagnose why one app has such a poor response time. When running google PageSpeed Insights the "core" app on the root”
stackexchange · John · 4/9/2024
Open original →Slow response from Django Rest Framework with annotated queryset
“<p>I am using Django Rest Framework and simply trying to filter out objects which have more than 0 related items but as soon as I add in a filter to my annotation that includes a datetime, the response time goes from milliseconds to 90 seconds or so.</p>
<p>Here is the code that takes ages:-</p>
<pr”
stackexchange · bodger · 2/23/2024
Open original →Django rest framework slow response time
“<p>I am working on a project. I am using <strong>Django rest framework</strong>.</p>
<p>I have a category model. And there is only 2 rows. And the api response time is 180 ms avarage.</p>
<p>it is <strong>too slow</strong> for only 2 rows. And api is <strong>very simple</strong>. Why it is too slow ”
stackexchange · Noa · 3/29/2023
Open original →Django Rest Framework very slow on Azure
“<p>I had migrated from Heroku to Microsft Azure, and the speed is really very slow, my App service is having the following specs OS (linux):</p>
<pre><code>P1V2
210 total ACU
3.5 GB memory
Dv2-Series compute equivalent
</code></pre>
<p>then when it comes to my <strong>Azure Database for PostgreSQL f”
stackexchange · Lutaaya Huzaifah Idris · 12/12/2022
Open original →