# Performance improvements on long topics?

**URL:** <https://meta.discourse.org/t/performance-improvements-on-long-topics/30187>\
**Category:** Product Support\
**Created:** [19.Июнь.2015 01:05:44 UTC](https://meta.discourse.org/t/performance-improvements-on-long-topics/30187 "2015-06-19T01:05:44Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [12.Июль.2018 01:07:40 UTC](https://meta.discourse.org/t/performance-improvements-on-long-topics/30187/28 "2018-07-12T01:07:40Z")

</div>

Might there be a way to take advantage of the difference between `count(*)` and `count(field_identier)` ?

eg. `count(*)` counts _all_ rows, whereas `count(field_intentier)` counts only the fields that are not null.

My thinking is that if each row had something like an `is_countable` field that was null for rows not wanted to be counted it could simplify the query and hopefully improve performance. The cost being that the field would need to be updated which might offset any benefit it might provide.

---

_[View the full topic](https://meta.discourse.org/t/performance-improvements-on-long-topics/30187)._
