Like in bug 30359, when acqui/histsearch.pl is opened and there are lot of budgets, loading the page takes a long time. Bug 30359 added parameter skiptotals to GetBudgetHierarchy. We should set this parameter also to call of GetBudgetHierarchy in acqui/histsearch.pl.
Created attachment 144343 [details] [review] Bug 32377: Set param skiptotals on call of GetBudgetHierarchy in acqui/histsearch.pl Calling GetBudgetHierarchy from acqui/histsearch.pl is slow if param skiptotals is not used. To test: 1. Open browsers Console -> Network (F12). 2. Navigate to Order search page and perform search. => Take a note how long it takes to load the Search results page. 3. Apply this patch. 4. Repeat step 2. => Page should now load faster. Sponsored-by: Koha-Suomi Oy
Created attachment 144891 [details] [review] Bug 32377: Set param skiptotals on call of GetBudgetHierarchy in acqui/histsearch.pl Calling GetBudgetHierarchy from acqui/histsearch.pl is slow if param skiptotals is not used. To test: 1. Open browsers Console -> Network (F12). 2. Navigate to Order search page and perform search. => Take a note how long it takes to load the Search results page. 3. Apply this patch. 4. Repeat step 2. => Page should now load faster. Sponsored-by: Koha-Suomi Oy Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Created attachment 145837 [details] [review] Bug 32377: Set param skiptotals on call of GetBudgetHierarchy in acqui/histsearch.pl Calling GetBudgetHierarchy from acqui/histsearch.pl is slow if param skiptotals is not used. To test: 1. Open browsers Console -> Network (F12). 2. Navigate to Order search page and perform search. => Take a note how long it takes to load the Search results page. 3. Apply this patch. 4. Repeat step 2. => Page should now load faster. Sponsored-by: Koha-Suomi Oy Signed-off-by: Frédéric Demians <f.demians@tamil.fr> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Pushed to master for 23.05. Nice work everyone, thanks!
Nice work everyone! Pushed to stable for 22.11.x
Backported to 22.05.x for upcoming 22.05.10
applied to 21.11.x for 21.11.16
Not backported to 21.05.x