From: Tom Clegg Date: Tue, 5 Feb 2013 15:20:22 +0000 (-0500) Subject: limit 100 instead of 1000 X-Git-Tag: 1.1.0~3374^2~63 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/fdb05f9f5a1613b80f371a4dc0561ff05f678586 limit 100 instead of 1000 --- diff --git a/app/controllers/collections_controller.rb b/app/controllers/collections_controller.rb index f282a1bb81..b4fb368879 100644 --- a/app/controllers/collections_controller.rb +++ b/app/controllers/collections_controller.rb @@ -7,10 +7,10 @@ class CollectionsController < ApplicationController end def index - @links = Link.eager.limit(1000).where(head_kind: 'orvos#collection') | - Link.eager.limit(1000).where(tail_kind: 'orvos#collection') + @links = Link.eager.limit(100).where(head_kind: 'orvos#collection') | + Link.eager.limit(100).where(tail_kind: 'orvos#collection') @collections = {} - Collection.limit(1000).where({}).each do |c| + Collection.limit(100).where({}).each do |c| @collections[c.uuid] = {uuid: c.uuid} end @links.each do |l|