Changes between Version 2 and Version 3 of Ticket #31515, comment 7
- Timestamp:
- Apr 25, 2020, 9:01:39 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31515, comment 7
v2 v3 21 21 I 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` 22 22 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. 23 Run 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? 24 24