# データエクスプローラーで結果数を表示しますか？

**URL:** <https://meta.discourse.org/t/have-data-explorer-show-number-of-results/96687>\
**Category:** Feature\
**Created:** [2018 年 9 月 7 日午後 10:34 UTC](https://meta.discourse.org/t/have-data-explorer-show-number-of-results/96687 "2018-09-07T22:34:50Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [2018 年 9 月 10 日午後 6:43 UTC](https://meta.discourse.org/t/have-data-explorer-show-number-of-results/96687/5 "2018-09-10T18:43:59Z")

</div>

I think what you are wanting is a `SELECT COUNT()` query.

I think for many queries it could be a matter of simply replacing the main SELECT fields with COUNT. But I don’t know if it would get messy with queries that had aggregates and GROUP BYs.

IMHO, a type of “results were limited to 500” would be good enough and would indicate that a separate COUNT query might be needed.

I quite often put together COUNT queries when I work up a query so I won’t be taken by surprise by a long running query. eg. from this table with mega rows join another table with mega rows join yet another table with mega rows …

In fact, I would recommend running heavy queries on a _copy_ of the live database to avoid having the forum hang while the query runs.

---

_[View the full topic](https://meta.discourse.org/t/have-data-explorer-show-number-of-results/96687)._
