Large number of queries on test-list save in admin.

Issue #146 on hold
Randle Taylor repo owner created an issue

Looks like saving the test list model and the subsequently fired signal handlers are generating lots of queries.

Comments (8)

  1. Randle Taylor 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.

  2. Log in to comment