# When should Discourse upgrade to Rails 5?

**URL:** <https://meta.discourse.org/t/when-should-discourse-upgrade-to-rails-5/67123>\
**Category:** Development\
**Created:** [2017年七月30日 21:26 UTC](https://meta.discourse.org/t/when-should-discourse-upgrade-to-rails-5/67123 "2017-07-30T21:26:52Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [2017年九月13日 03:46 UTC](https://meta.discourse.org/t/when-should-discourse-upgrade-to-rails-5/67123/18 "2017-09-13T03:46:38Z")

</div>

I’ve just deployed `meta` back on Rails 5.1 after we reverted it thinking that it caused [Can't change "default locale" - #6 by tgxworld](https://meta.discourse.org/t/cant-change-default-locale/69384/6). Let me know if you notice any new bugs 🙂

> [@codinghorror](#):
>
> We need to bypass ActiveRecord since it keeps getting slower, especially on the topic page. This is the most important page in our application! Let’s target a 20% speed improvement on the topic page, by bypassing ActiveRecord and doing raw queries.

@codinghorror We’re not going to be able to bypass Active Record entirely and drop straight to raw SQL since we have alot of logic baked in to our serializers that we use to form the json payload. So for, I’ve skipped AR in favor of SQL on the topics code path whenever possible.

---

_[View the full topic](https://meta.discourse.org/t/when-should-discourse-upgrade-to-rails-5/67123)._
