[Koha-bugs] [Bug 13645] DBIx connection needs to be cached

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 4 13:47:56 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13645

--- Comment #7 from Jonathan Druart <jonathan.druart at biblibre.com> ---
I did a quick test (master):
inserted 1000 booksellers, launched

  use Modern::Perl;
  use Koha::Acquisition::Bookseller;
  Koha::Acquisition::Bookseller->search;

perl benchmark_bookseller.pl  33.83s user 0.12s system 99% cpu 34.280 total

I quickly implemented Koha::Acquisition::Bookseller using Koha::Object (see bug
13019) and tested with

  use Modern::Perl;
  use Koha::Acquisition::Booksellers;
  my $booksellers = Koha::Acquisition::Booksellers->search;
  while ( my $b = $booksellers->next ) {
      say $b->name;
  }

perl benchmark_bookseller.pl  1.00s user 0.03s system 96% cpu 1.072 total

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


More information about the Koha-bugs mailing list