[koha-commits] main Koha release repository branch 18.11.x updated. v18.11.10-37-gd340a67

Git repo owner gitmaster at git.koha-community.org
Fri Oct 18 00:55:08 CEST 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, 18.11.x has been updated
       via  d340a6766f9c343c4a1cd3f657d5ade29c301e63 (commit)
       via  85cc23c6512a576eb872c8809096e3f14f31c841 (commit)
       via  5244baa2929268601153ed561913f7e9cc0e0f62 (commit)
       via  3f325c39722d80748f0757ae19f01e1ed21966c2 (commit)
       via  15b87a2397e585d3dc6d66dd534ee834e9bede99 (commit)
      from  51c0f7b62480f35ff5120f03baf7d3fa0cbcc79e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d340a6766f9c343c4a1cd3f657d5ade29c301e63
Author: Tomas Cohen Arazi <tomascohen at theke.io>
Date:   Wed Sep 25 10:44:03 2019 -0300

    Bug 23624: (QA follow-up) Test error cases
    
    Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
    (cherry picked from commit 6c90c6f7d9e0f04ce148b723fc3a4828f03e9079)
    Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>
    (cherry picked from commit 34f49c908c430ff63d1419cab9f1f5dcfd7d6055)
    
    Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

commit 85cc23c6512a576eb872c8809096e3f14f31c841
Author: Kyle M Hall <kyle at bywatersolutions.com>
Date:   Fri Sep 20 07:14:34 2019 -0400

    Bug 23624: (QA follow-up) Don't fetch the count unless the query was successful
    
    Signed-off-by: Liz Rea <wizzyrea at gmail.com>
    Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
    (cherry picked from commit f2b27975679e64722f06b175e759801227a313fc)
    Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>
    (cherry picked from commit 528aa88b7e7978b25331258f4f69274a3c21945f)
    
    Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

commit 5244baa2929268601153ed561913f7e9cc0e0f62
Author: Tomas Cohen Arazi <tomascohen at theke.io>
Date:   Thu Sep 19 11:13:28 2019 -0300

    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>
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
    (cherry picked from commit bca4453c50d8b5b1d3c7029ded2b522a9a2bf868)
    Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>
    (cherry picked from commit b332b365edbab4197580ecd4b3fe684dadfe070f)
    
    Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

commit 3f325c39722d80748f0757ae19f01e1ed21966c2
Author: Tomas Cohen Arazi <tomascohen at theke.io>
Date:   Thu Sep 19 10:50:46 2019 -0300

    Bug 23624: Unit tests
    
    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>
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
    (cherry picked from commit 7958e7f3f9b4275cd8da0ed2e04dfbc90d863a60)
    Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>
    (cherry picked from commit 654c13e7d9aa911fb42d40d2a1c34a6d554967fa)
    
    Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

commit 15b87a2397e585d3dc6d66dd534ee834e9bede99
Author: Paul Hoffman <paul at flo.org>
Date:   Tue Sep 17 13:00:03 2019 -0400

    Bug 23624: Count rows in report without (potentially) consuming all memory
    
    C4::Reports::Guided::nb_rows (called by get_prepped_report in reports/guided_reports.pl) uses DBI::fetchall_arrayref to retrieve all rows at once; counts them; and then discards the rows and returns the count.  This has the potential, if the number of rows is very large, to exhaust all available memory.
    
    (Other code in guided_reports.pl has the same potential effect, but because the solution to that is much less straightforward it will be addressed in a separate bug report.)
    
    This patch uses the second ($max_rows) parameter to DBI::fetchall_arrayref to retrieve a smaller number (1,000) of rows at a time, looping until all results have been retrieved.  This will only use as much memory as the maximum amount used by a single call to DBI::fetchall_arrayref.
    
    Test Plan:
    1) Create a report the will generate a huge number of results
    2) Run the report, watch your memory usage spike
    3) Apply this patch
    4) Restart all the things!
    5) Run the report again, note your memory usage is much lower
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    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>
    Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
    (cherry picked from commit 79e15278f718768fa082b7b3d7b48e6adde164da)
    Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>
    (cherry picked from commit be8bade672b279da24f15154c88a5c5faf840b19)
    
    Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

-----------------------------------------------------------------------

Summary of changes:
 C4/Reports/Guided.pm            |   22 +++++++++++++++++++---
 t/db_dependent/Reports/Guided.t |   36 +++++++++++++++++++++++++++++++++++-
 2 files changed, 54 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list