Extremely slow response times in local dev
See original GitHub issueWhat happened?
Average response time is 8000ms or more. Regardless of page.
What should’ve happened instead?
Previous versions responded in less than 1000ms even with heavy queries.
Additional details
- Host system configuration:
- Version of cookiecutter CLI (get it with
cookiecutter --version
): Cookiecutter 1.7.2 - OS: OSX 10.15.6
- Python version: Python 3.8.5
- Docker versions (if using Docker): Docker version 19.03.12, build 48a66213fe
- Docker Compose version: docker-compose version 1.26.2, build eefe0d31
- Version of cookiecutter CLI (get it with
I’m using docker-compose to develop and deploy. I have no problems with the production settings.
In settings/local.py
with DISABLE_PANELS
commented out I’m back to 500ms response times or less.
DEBUG_TOOLBAR_CONFIG = {
# "DISABLE_PANELS": ["debug_toolbar.panels.redirects.RedirectsPanel"],
"SHOW_TEMPLATE_CONTEXT": True,
}
It could be just me but I wanted to share in case anyone else is having issues.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:17
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Running sites on "localhost" is extremely slow - Stack Overflow
Poor coding. · More than 3 seconds on localhost is extremely ridiculous since most of the sites online on internet load within 2...
Read more >Why is the response on localhost so slow? - apache 2.2
I was working on an EXT-JS application recently and has a huge problems of MYSQL data queries taking too long to respond. MYSQL...
Read more >Super slow page load times in development environment
The problem is with the dev environment - It takes about 30 seconds to do a full reload.
Read more >Local dev server running slow? This may be of help.
The way this manifests is frequent calls to the database being repeated, increasing server response times. So the fix is as follows.
Read more >Very Slow Localhost config (Too slow too work) - WordPress.org
Take a look at Local by Flywheel. It's free and does a very good job of setting up a one or two click...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is a godsend bug report. It literally save me thousands of dollars. My 8 year old macmini was so slow I couldn’t bear the development process anymore. I was going to upgrade it immediately. Now things are good. Make development great again.
Thanks a lot! This save me after lots of hours and days of frustration!