# Re-purposing a Discourse installation for a yearly event

**URL:** <https://meta.discourse.org/t/re-purposing-a-discourse-installation-for-a-yearly-event/34670>\
**Category:** Product Support\
**Created:** [October 19, 2015, 2:12pm UTC](https://meta.discourse.org/t/re-purposing-a-discourse-installation-for-a-yearly-event/34670 "2015-10-19T14:12:43Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [October 30, 2017, 9:27am UTC](https://meta.discourse.org/t/re-purposing-a-discourse-installation-for-a-yearly-event/34670/19 "2017-10-30T09:27:53Z")

</div>

The `Category.all.each` ▶ `Category.find_each` is for performance reasons. The former loads all categories in memory while the latrer will do it in batches.

The `c.topics.length` ▶ `Topic.where(category: c).count` is probably the same but is more explicit. I like explicit 😉

---

_[View the full topic](https://meta.discourse.org/t/re-purposing-a-discourse-installation-for-a-yearly-event/34670)._
