[Koha-bugs] [Bug 23624] Count rows in report without (potentially) consuming all memory

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 25 15:45:09 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23624

--- Comment #19 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 93155
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=93155&action=edit
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 at theke.io>

Signed-off-by: Liz Rea <wizzyrea at gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list