[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
Thu Sep 19 20:46:17 CEST 2019


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

Liz Rea <wizzyrea at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #92970|0                           |1
        is obsolete|                            |

--- Comment #11 from Liz Rea <wizzyrea at gmail.com> ---
Created attachment 92976
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=92976&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>

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


More information about the Koha-bugs mailing list