]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 30 Sep 2019 14:49:13 +0000 (15:49 +0100)
commitbca4453c50d8b5b1d3c7029ded2b522a9a2bf868
treec79f432fcf16909677641202ab85768a9c71234f
parent7958e7f3f9b4275cd8da0ed2e04dfbc90d863a60
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>
C4/Reports/Guided.pm