- changed version to 0.2
Large number of queries on test-list save in admin.
Looks like saving the test list model and the subsequently fired signal handlers are generating lots of queries.
Comments (8)
-
reporter -
reporter - changed milestone to 0.2
- changed version to 0.1
- marked as enhancement
-
reporter reduced slightly in 0.2 but still needs work.
-
reporter - changed milestone to 0.2.1
-
reporter - changed milestone to 0.2.3
-
reporter - changed status to open
-
reporter I've reduced the number of db calls when saving a TestList from 4 calls per form to 3 calls per form by skipping the validate_unique step of the TestListMembershipForm. It looks like 2 of the 3 remaining calls occur in the "test" field validation of the TestListMembership form and I can't see an easy way to get rid of them without resorting to ugly hacks.
It may be possible to share a single queryset (and thus take advantage of queryset caching) across all testlistmembership forms but it wasn't obvious to me how to do that.
-
reporter - changed status to on hold
Issue still exists, but I don't see an easy way to resolve it for now.
- Log in to comment