[ARVADOS] updated: e25a377ed38698cb3eebbd0f43b80a5276595240

Git user git at public.curoverse.com
Fri Oct 7 10:38:08 EDT 2016


Summary of changes:
 apps/workbench/app/controllers/application_controller.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

       via  e25a377ed38698cb3eebbd0f43b80a5276595240 (commit)
      from  8e6d577f1381da0d42481ef8dd0479241e3c50bf (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit e25a377ed38698cb3eebbd0f43b80a5276595240
Author: radhika <radhika at curoverse.com>
Date:   Fri Oct 7 10:19:48 2016 -0400

    10078: When fetching recent_processes, do not select 'components' which is not needed in this context. For very large pipelines, this will perform better.

diff --git a/apps/workbench/app/controllers/application_controller.rb b/apps/workbench/app/controllers/application_controller.rb
index c6148ca..5b3f3f5 100644
--- a/apps/workbench/app/controllers/application_controller.rb
+++ b/apps/workbench/app/controllers/application_controller.rb
@@ -855,7 +855,8 @@ class ApplicationController < ActionController::Base
   def recent_processes lim
     lim = 12 if lim.nil?
 
-    pipelines = PipelineInstance.limit(lim).order(["created_at desc"])
+    cols = %w(uuid owner_uuid created_at modified_at pipeline_template_uuid name state started_at finished_at)
+    pipelines = PipelineInstance.select(cols).limit(lim).order(["created_at desc"])
 
     crs = ContainerRequest.limit(lim).order(["created_at desc"]).filter([["requesting_container_uuid", "=", nil]])
     procs = {}

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list