# SQL query taking too much time to run

**URL:** <https://meta.discourse.org/t/sql-query-taking-too-much-time-to-run/36583>\
**Category:** Product Support\
**Created:** [December 11, 2015, 5:52pm UTC](https://meta.discourse.org/t/sql-query-taking-too-much-time-to-run/36583 "2015-12-11T17:52:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![sergiolopes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sergiolopes/32/122065_2.png) [@sergiolopes](https://meta.discourse.org/u/sergiolopes)\
**Post date:** [December 11, 2015, 6:24pm UTC](https://meta.discourse.org/t/sql-query-taking-too-much-time-to-run/36583/4 "2015-12-11T18:24:47Z")

</div>

Thanks guys!  
We did more tests here and it seems that as an annonymous user everything is ok. SQL take no more than 30ms.

But logging in both as an admin or as a normal user, the query take too long. Usually more than 1 second, and at least 500ms.

We are using Discourse 1.4.3 (latest stable?) at [http://discourse.guj.com.br:3000](http://discourse.guj.com.br:3000) . @sam, do you recommend updating to 1.5.0-beta6?

---

_[View the full topic](https://meta.discourse.org/t/sql-query-taking-too-much-time-to-run/36583)._
