limit 100 instead of 1000
authorTom Clegg <tom@clinicalfuture.com>
Tue, 5 Feb 2013 15:20:22 +0000 (10:20 -0500)
committerTom Clegg <tom@clinicalfuture.com>
Tue, 5 Feb 2013 15:20:22 +0000 (10:20 -0500)
app/controllers/collections_controller.rb

index f282a1bb81d13f83c5615cc99f3db74ea468bf8b..b4fb36887957b9cb696aab9841e25f86d2b1fef8 100644 (file)
@@ -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|