You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by de...@apache.org on 2017/02/07 15:34:42 UTC
[1/2] incubator-trafficcontrol git commit: This closes #257
Repository: incubator-trafficcontrol
Updated Branches:
refs/heads/master 994d625c1 -> 1fc9fd86e
This closes #257
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/1fc9fd86
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/1fc9fd86
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/1fc9fd86
Branch: refs/heads/master
Commit: 1fc9fd86ee8e2271f79221e86eb2ac0a91a3da86
Parents: 58451c1
Author: Dewayne Richardson <de...@apache.org>
Authored: Tue Feb 7 08:34:06 2017 -0700
Committer: Dewayne Richardson <de...@apache.org>
Committed: Tue Feb 7 08:34:06 2017 -0700
----------------------------------------------------------------------
----------------------------------------------------------------------
[2/2] incubator-trafficcontrol git commit: adds prefetch
Posted by de...@apache.org.
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/58451c19
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/58451c19
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/58451c19
Branch: refs/heads/master
Commit: 58451c19bf5e1c4e61f9eed5729f4e24e20bc799
Parents: 994d625
Author: Jeremy Mitchell <mi...@gmail.com>
Authored: Mon Feb 6 15:25:23 2017 -0700
Committer: Dewayne Richardson <de...@apache.org>
Committed: Tue Feb 7 08:34:06 2017 -0700
----------------------------------------------------------------------
traffic_ops/app/lib/API/CachegroupParameter.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/58451c19/traffic_ops/app/lib/API/CachegroupParameter.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/CachegroupParameter.pm b/traffic_ops/app/lib/API/CachegroupParameter.pm
index 8111309..744bf9c 100644
--- a/traffic_ops/app/lib/API/CachegroupParameter.pm
+++ b/traffic_ops/app/lib/API/CachegroupParameter.pm
@@ -24,7 +24,7 @@ sub index {
my $self = shift;
my @data;
my $orderby = $self->param('orderby') || "cachegroup";
- my $rs_data = $self->db->resultset("CachegroupParameter")->search( undef, { order_by => $orderby } );
+ my $rs_data = $self->db->resultset("CachegroupParameter")->search( undef, { prefetch => [ 'cachegroup', 'parameter' ], order_by => $orderby } );
while ( my $row = $rs_data->next ) {
push(
@data, {