[Koha-bugs] [Bug 22690] Merging records with many items too slow (Elasticsearch)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu May 27 17:46:07 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22690
--- Comment #125 from Joonas Kylmälä <joonas.kylmala at helsinki.fi> ---
To debug the remaining warning I added the following lines to TestBuilder.pm
> use Data::Dumper;
> warn "$linked_tbl with " . Dumper($fk_value) if $linked_tbl eq 'Item';
this is just above the line:
> return {} if $self->schema->resultset($linked_tbl)->find( $fk_value );
inside _create_links(). The output I got when running the test then with this
is as follows:
> Item with $VAR1 = {
> 'itemnumber' => 1773
> };
> Item with $VAR1 = {
> 'biblionumber' => 1234
> };
> DBIx::Class::Storage::DBI::select_single(): Query returned more than one row. > SQL that returns multiple rows is DEPRECATED for ->find and ->single at /kohadevbox/koha/t/lib/TestBuilder.pm line 239
So for some reason where are using ->find() in TestBuilder.pm even for
non-primary keys (here 'biblionumber' of items table) and that causes problems.
I haven't still gotten to the bottom of this so any help is still welcome to
resolve this.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list