数据探索器查询:列出“估计阅读时间”最长的主题?

抱歉回复晚了。我最近忙于讨论如何在网站上组织数据探索器查询。使用 data-explorer 标签似乎是理想的解决方案,但包含数据探索器查询的主题需要由拥有 TL3 权限的用户进行标记。

我认为类似以下的查询可以为您提供所需的信息:

SELECT
topic_id,
category_id,
SUM(total_msecs_viewed) / 60000  AS estimated_minutes_read
FROM topic_users tu
JOIN topics t ON t.id = tu.topic_id
WHERE t.deleted_at IS NULL
AND t.archetype = 'regular'
GROUP BY tu.topic_id, category_id
ORDER BY estimated_minutes_read DESC
LIMIT 100

查询最后一行中的 LIMIT 100 语句可以根据需要调整或移除,以便返回更多结果。

有趣的是,在 Meta 站点上记录阅读时间最长的主题是 https://meta.discourse.org/t/discourseconnect-official-single-sign-on-for-discourse-sso/13045。目前的累计阅读时间为 126048 分钟。