https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26587 --- Comment #22 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- (In reply to Fridolin Somers from comment #16)
Maybe we could prefer using Koha::Cache::Memory::Lite like in other places : https://git.koha-community.org/Koha-community/Koha/src/commit/ 2e6b5483503e7feb0afc6ef526a675bde767dd8e/Koha/AuthorisedValues.pm#L104
In order to avoid having different cache features.
I second that and I submitted a patch. I haven't noticed any significant changes in perf between the 2 versions (always 21-22s). Tested using 1000 items with the following script to generate the biblio record: use t::lib::TestBuilder; my $builder = t::lib::TestBuilder->new; my @branchcodes = Koha::Libraries->search->get_column('branchcode'); my $biblio = $builder->build_sample_biblio; for my $i ( 1..1000 ) { say $i; my $branchcode = @branchcodes[int(rand(scalar @branchcodes))]; $builder->build_sample_item({biblionumber => $biblio->biblionumber, homebranch => $branchcode, holdingbranch => $branchcode }); } say "biblionumber=".$biblio->biblionumber; -- You are receiving this mail because: You are watching all bug changes.