# Useful Metric/Statics

**URL:** <https://meta.discourse.org/t/useful-metric-statics/106350>\
**Category:** Data & reporting\
**Created:** [January 12, 2019, 10:46am UTC](https://meta.discourse.org/t/useful-metric-statics/106350 "2019-01-12T10:46:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [January 12, 2019, 10:32pm UTC](https://meta.discourse.org/t/useful-metric-statics/106350/3 "2019-01-12T22:32:36Z")

</div>

It is possible to enter the ruby console and run ActiveRecord queries, if you feel more comfortable doing that.

But IMHO, the best way is to use the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin.

- it provides information about tables, fields, and field datatypes
- it does only SELECT queries so it is inherently safer because it can not do anything destructive
- has built in LIMIT so a poorly crafted query will not bog or crash your site

Some knowledge of the database architecture is still needed, especially for complex queries. But many (IMHO, most) times it is intuitive. eg.  
it is clear that the posts table’s `posts.topic_id` field references the topics table’s `topics.id` field.

---

_[View the full topic](https://meta.discourse.org/t/useful-metric-statics/106350)._
