哪些提交的速度最快? (哪些提交在N秒内达到了他们的第1,000条评论 - 按N上升排序)。基本上通过关于评论量的加速来提交提交。 (我假设突发新闻故事是最快的故事。)
答案 0 :(得分:2)
让我们按照发布的时间对每个帖子的评论进行排名,查看第1和第1000个,计算两者之间的时差并按顺序排列:
SELECT link_id, FIRST(IF(rank=1000,created_utc,null)) - FIRST(IF(rank=1,created_utc,null)) thousand
FROM (
SELECT link_id, created_utc, RANK() OVER(PARTITION BY link_id ORDER BY created_utc) rank
FROM [fh-bigquery:reddit_comments.2015_07]
)
WHERE rank=1000 OR rank=1
GROUP BY link_id
HAVING NOT thousand IS null
ORDER BY thousand
最快:
最慢的:
第三名:
https://www.reddit.com/r/announcements/comments/3djjxw/lets_talk_content_ama/[3]