# 你们社群中最常用的反应是哪些？

**URL:** <https://meta.discourse.org/t/which-reactions-are-the-most-commonly-used-in-your-community/286866>\
**Category:** Community Building\
**Tags:** reactions, sql-query\
**Created:** [2023 年11 月 28 日 17:43 UTC](https://meta.discourse.org/t/which-reactions-are-the-most-commonly-used-in-your-community/286866 "2023-11-28T17:43:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jericson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jericson/32/116215_2.png) [@jericson](https://meta.discourse.org/u/jericson)\
**Post date:** [2023 年12 月 11 日 17:58 UTC](https://meta.discourse.org/t/which-reactions-are-the-most-commonly-used-in-your-community/286866/3 "2023-12-11T17:58:03Z")

</div>

啊。`UNION ALL` 是执行此查询的正确方法，因为您正在计算两件截然不同的事情。我的查询需要一个外部连接来覆盖在 `discourse_reactions_reactions` 中没有条目的帖子。添加该连接导致我的查询超时，因此我无法验证这是否解决了问题。无论如何，`UNION` 都是这里的正确答案。

不过，我有点好奇 `post_actions` 是否会重复计算点赞。它是否考虑了用户点赞帖子然后移除或更改该反应的情况？

我需要在查询中将“heart”更改为“+1”，因为我们在 College Confidential 使用了 👍 作为我们的点赞。这是我从该查询得到的结果：

| reaction | count |
| --- | --- |
| 👍 | 2089798 |
| ❤️‍🩹 | 28167 |
| 💯 | 27070 |
| ❤ | 24676 |
| 🎉 | 24055 |
| 🤣 | 16778 |
| 😲 | 5325 |
| 💡 | 4590 |
| 😠 | 3547 |
| 😄 | 3078 |
| 😂 | 2623 |
| 😭 | 2443 |
| 😉 | 369 |
| ✔ | 43 |

---

_[View the full topic](https://meta.discourse.org/t/which-reactions-are-the-most-commonly-used-in-your-community/286866)._
