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

--- Comment #19 from Marcel de Rooy <[email protected]> ---
We are really wasting resources here. 

First we do:
my %itemdata = map { lc($_->{barcode}) => $_->{itemnumber} } @{
Koha::Items->search({ barcode => { -in => \@barcodelist } }, { columns => [
'itemnumber', 'barcode' ] } )->unblessed };

Lets discard that info.
And later do:

sub build_table {
    my ( $self, $params ) = @_;
    my %itemnumbers_to_idx = map { $self->{itemnumbers}->[$_] => $_ }
0..$#{$self->{itemnumbers}};
    my $items = Koha::Items->search( { itemnumber => $self->{itemnumbers} } );

We are looking up all items again ;)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to