adds prefetch
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/67f1c8fc Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/67f1c8fc Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/67f1c8fc Branch: refs/heads/master Commit: 67f1c8fc1d42bf1ae68c30f510663d35c6fc7865 Parents: bcbb421 Author: Jeremy Mitchell <mitchell...@gmail.com> Authored: Mon Feb 6 15:38:09 2017 -0700 Committer: Dewayne Richardson <dewr...@apache.org> Committed: Tue Feb 7 08:32:24 2017 -0700 ---------------------------------------------------------------------- traffic_ops/app/lib/API/DeliveryServiceMatches.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/67f1c8fc/traffic_ops/app/lib/API/DeliveryServiceMatches.pm ---------------------------------------------------------------------- diff --git a/traffic_ops/app/lib/API/DeliveryServiceMatches.pm b/traffic_ops/app/lib/API/DeliveryServiceMatches.pm index 3234667..30af51e 100644 --- a/traffic_ops/app/lib/API/DeliveryServiceMatches.pm +++ b/traffic_ops/app/lib/API/DeliveryServiceMatches.pm @@ -29,7 +29,7 @@ sub index { my $rs; if ( &is_privileged($self) ) { - $rs = $self->db->resultset('Deliveryservice')->search( undef, { prefetch => [ 'cdn', 'deliveryservice_regexes' ], order_by => 'xml_id' } ); + $rs = $self->db->resultset('Deliveryservice')->search( undef, { prefetch => [ 'cdn', 'type', { 'deliveryservice_regexes' => 'regex' } ], order_by => 'xml_id' } ); my @matches; while ( my $row = $rs->next ) {