impress/app
Matchu b93dbb8e49 Remove redundant queries when importing closet pages
Specifically, we were running a find_or_initialize_by for all 50
hangers, which isn't great. Collation logic is more complicated this
way, but query count is way lower.

Additionally, compare against hanger.list_id instead of hanger.list,
because hanger.list will fire a query if list_id is non-nil, but that
nil ID tells us everything we needed to know, anyway.
2013-06-26 00:10:52 -07:00
..
assets move closet-hanger-destroy form to JS 2013-06-22 15:45:59 -07:00
controllers Don't add duplicate hangers now that closet import can specify a list 2013-06-25 23:40:02 -07:00
flex user:owns, user:wants queries 2013-01-25 10:35:35 -06:00
helpers Move item_link partial caching to a helper rather than the template itself 2013-06-22 16:31:46 -07:00
models Remove redundant queries when importing closet pages 2013-06-26 00:10:52 -07:00
views stop caching item preview species images, and fix the bad query instead 2013-06-23 22:35:27 -07:00