Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BWS-PKG - Bug 36447: Circ rules slow to load when many itemtypes and …
…categories It seems that we loop all categories and item types to build the circ matrix. We should only loop over values that have actually been used in circulation rules. Test Plan: 1) Create 1000 itemtypes and category codes. You can use the following script: use t::lib::TestBuilder; my $builder = t::lib::TestBuilder->new(); $builder->build( { source => 'Category' } ) for 0..1000; $builder->build( { source => 'Itemtype' } ) for 0..1000; 2) Note the lengthy load time for smart-rules.pl 3) Apply this patch 4) Restart all the things! 5) Reload the page 6) Note the much faster load time! Signed-off-by: Owen Leonard <[email protected]> Signed-off-by: Marcel de Rooy <[email protected]>
- Loading branch information