dimagi/commcare-hq — pull request #5164 by nickpell (2014-12-24 20:35:06+00:00)
Title: improve performance of invoice report page when no filters are specified

Shouldn't load adjust balance forms for all invoices if none are currently showing in the report. Improves loadtime of https://staging.commcarehq.org/hq/accounting/invoices/ from 15s to 2.5s. When filters are applied, in a typical workflow the number of rows shown are small enough for the adjust balance forms not to cause a performance issue. If that workflow changes, additional optimizations (have one form and dynamically populate it depending on which row is chosen) might be needed to keep the report usable.

@biyeun