upgrade django-formtools==2.5.1 (attempt 2)#2537
Conversation
GeoWill
left a comment
There was a problem hiding this comment.
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