https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37389 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #169191|0 |1 is obsolete| | --- Comment #14 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 169192 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169192&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. Co-authored-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.