Performance: inject_results in linked_records
authorSven Schöling <s.schoeling@linet-services.de>
Tue, 3 Jan 2017 15:13:37 +0000 (16:13 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 5 Jan 2017 14:07:41 +0000 (15:07 +0100)
SL/DB/Helper/LinkedRecords.pm

index 2ed5d20..026131b 100644 (file)
@@ -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,
       )
     };
   };