[Koha-bugs] [Bug 28922] Vendor search has poor performance when system has many vendors

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jul 10 13:47:25 CEST 2023


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

--- Comment #5 from Kyle M Hall <kyle at bywatersolutions.com> ---
(In reply to Jonathan Druart from comment #3)
> (In reply to Kyle M Hall from comment #2)
> > (In reply to Jonathan Druart from comment #1)
> > > How many is many? 100, 1000, 10000?
> > 
> > Depends on the hardware.
> 
> Lol yes, I know, but it's good to have an idea to recreate the problem
> locally.

This will do it:

#!/usr/bin/perl
use t::lib::TestBuilder;
my $builder = t::lib::TestBuilder->new;

for ( my $i = 0; $i < 100; $i++ ) {
    my $b = $builder->build({ source => 'Aqbookseller' });
    for ( my $i = 0; $i < 100; $i++ ) {
        my $basket = $builder->build({ source => 'Aqbasket', value  => {
booksellerid => $b->{id} } });
    }
}

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list