Bug 23624: (QA follow-up) Optimize even more
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 19 Sep 2019 14:13:28 +0000 (11:13 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 8 Oct 2019 07:24:50 +0000 (09:24 +0200)
commitb332b365edbab4197580ecd4b3fe684dadfe070f
tree8449e5381fd54a6249e5989c56fb3097ff4b0666
parent654c13e7d9aa911fb42d40d2a1c34a6d554967fa
Bug 23624: (QA follow-up) Optimize even more

This patch makes counting the results have no memory footprint by
leveraging on the DB to count the rows.

To test:
- Without this path, run:
  $ kshell
 k$ prove t/db_dependent/Reports/Guided.t
=> SUCCESS: Tests pass
- Apply this patch
- Run:
 k$ prove t/db_dependent/Reports/Guided.t
=> SUCCESS: Tests still pass!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit bca4453c50d8b5b1d3c7029ded2b522a9a2bf868)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Reports/Guided.pm