]> git.koha-community.org Git - koha.git/commit
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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 17 Oct 2019 22:29:05 +0000 (22:29 +0000)
commit5244baa2929268601153ed561913f7e9cc0e0f62
treedaabf2edfa2df12162425ec20e8bba6d5b4b009b
parent3f325c39722d80748f0757ae19f01e1ed21966c2
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>
(cherry picked from commit b332b365edbab4197580ecd4b3fe684dadfe070f)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Reports/Guided.pm