question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extremely slow response times in local dev

See original GitHub issue

What 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

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:open
  • Created 3 years ago
  • Reactions:17
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
huydbuicommented, Oct 18, 2020

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.

0reactions
jafrancovcommented, Sep 14, 2021

In settings/local.py with DISABLE_PANELS commented out I’m back to 500ms response times or less.

Thanks a lot! This save me after lots of hours and days of frustration!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found