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

--- Comment #13 from Martin Renvoize <[email protected]> ---
Created attachment 169191
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169191&action=edit
Bug 37389: Fix performance problems with extended attributes on the API

This patch adds a number of methods that work together to result the
problem as a whole.

We add a builder method to dynamically create DBIx::Class relations when
required for the Koha::ILL::Requests resultset.

We update Koha::REST::Plugin::Query to call the aforementioned builder
method so we can subsequently use these new relations to create a
performance join condition. (This also required passing the ResultSet
into the dbic_extended_attributes_join helper from
Koha::REST::Plugin::Objects)

We that add an AUTOLOAD into Koha::ILL::Request to allow use of the
new dynamically added DBIx::Class relations in the above as
extended_attributes_$type from the corresponding Koha::Object.

Finally, we reworked the query builder code to ensure we're using the
new relations added when using the API.

-- 
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