-
Notifications
You must be signed in to change notification settings - Fork 18
upgrade django-formtools==2.5.1 (attempt 2) #2537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
GeoWill
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you've tried this out on the dev site. I've had a go locally. Nothing broken, and query counts aren't stupid.
I did have a thought over the weekend that one way we could test this is by looking at the pg_stat_* tables. But I just had a very quick play and didn't get anywhere with it, so don't think it's worth blocking over. Just thought I'd throw it out there as a possible future idea.
|
Hi @chris48s, I noticed this when working again on the upstream PR for formtools. It would be great if you could test the branch of my PR on this project, even if only locally, and report back upstream if you run into any issues. It may help get the PR merged faster. |
|
Hi @knyghty Thanks for your upstream work on this. I installed locally and had a quick play with django debug toolbar open. The good news is:
That said, cache invalidation bugs can often be subtle and the testing I've done was not exhaustive. Thanks again for your help on this. |
Refs https://app.asana.com/1/1204880536137786/project/1204880927741389/task/1211648460534610?focus=true
Quick re-cap on this one:
In this PR, I am doing the upgrade a second time but this time in a way that retains reasonable performance. I've broadly succeeded. This version makes a lot fewer round-trips to the DB than the previous version we deployed. That said, it is worth noting that this version of django-formtools does make more DB requests than the previous one we were on and I don't think that is completely fixable in userspace.
There is an open PR upstream that might help with this if it is ever merged jazzband/django-formtools#291