From 2a5c1eb378137a5dd14da64b9875dc947ec2557b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 3 Jan 2017 16:13:37 +0100 Subject: [PATCH] Performance: inject_results in linked_records --- SL/DB/Helper/LinkedRecords.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/DB/Helper/LinkedRecords.pm b/SL/DB/Helper/LinkedRecords.pm index 2ed5d2036..026131b17 100644 --- a/SL/DB/Helper/LinkedRecords.pm +++ b/SL/DB/Helper/LinkedRecords.pm @@ -89,6 +89,7 @@ sub _linked_records_implementation { $manager_class->get_all( query => [ id => $link->$sub_wanted_id, @get_objects_query ], (with_objects => $params{with_objects}) x !!$params{with_objects}, + inject_results => 1, ) }; }; -- 2.20.1