【发布时间】:2020-06-09 10:10:29
【问题描述】:
我如何为 firebase firestore 创建一个查询,它可以为我提供“最热门”的帖子。我希望这样的查询可以与 nodejs 一起使用:
SELECT Title, LOG10(Likes + 1) * 86400 / .301029995663981 + UNIX_TIMESTAMP(Submitted) AS Hotness
FROM article
ORDER BY Hotness DESC
使用 Firestore 执行此操作的最佳方法是什么?
此查询的信用:Reddit hotness score
【问题讨论】:
标签: javascript node.js firebase google-cloud-firestore