melonhead901 / lab-specimen-transport-system

Automatically exported from code.google.com/p/lab-specimen-transport-system
0 stars 0 forks source link

remove @items.sort! call in _items_list.html.erb #94

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Doing this requires loading all of the items in the DB into memory and then 
sorting them every time someone looks at what is essentially our home page.

Instead, when the controller assigns @item, you should pass :order => 
"created_by" (or something similar) to the finder method being used.

Original issue reported on code.google.com by stein.za...@gmail.com on 19 May 2011 at 7:18

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 0d0e0e6d0c0b.

Original comment by donovanh...@gmail.com on 20 May 2011 at 12:13

GoogleCodeExporter commented 8 years ago
For you to verify

Original comment by donovanh...@gmail.com on 20 May 2011 at 12:14

GoogleCodeExporter commented 8 years ago

Original comment by stein.za...@gmail.com on 20 May 2011 at 5:02