Opened 6 months ago
Last modified 6 months ago
#35576 closed Cleanup/optimization
Django too slow on first request — at Initial Version
Reported by: | Sridhar | Owned by: | |
---|---|---|---|
Component: | Uncategorized | Version: | 2.2 |
Severity: | Normal | Keywords: | Django, Lambda |
Cc: | Sridhar | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
We have deployed our Django app on lambda, the first request always takes 5-6 seconds excluding lambda cold start times.
get_app_list
and reverse functions
take too long. The reverse function to prepare and match uri takes O(n).
I am attaching the Cprofile results below.
Note:
See TracTickets
for help on using tickets.