Changes between Version 2 and Version 3 of Ticket #31515, comment 7


Ignore:
Timestamp:
Apr 25, 2020, 9:01:39 PM (4 years ago)
Author:
Braunson

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31515, comment 7

    v2 v3  
    2121I packaged up a small test project. Run `pip install -r requirements.txt && python manage.py migrate`, then startup the ASGI with `uvicorn djangobug_repro.asgi:application --reload`
    2222
    23 Go to the homepage a couple times and run `show processlist;` in your SQL server to see the IDs not change, ie the connection is being reused. You can also run a benchmark with ab: `ab -c 20 -n 300` and see the connections reused.
     23Run a benchmark against the homepage and run `show processlist;` in your SQL server to see the IDs not change, ie the connection is being reused. You can run a benchmark with ab: `ab -c 20 -n 300` to see the connections reused. If I just refresh a couple times on my own I don't see the issue, it looks like everything gets closed off. But if you run the benchmark you see that Django starts to run behind on closing the connections?
    2424
Back to Top