有没有 way/workaround 我可以在 RethinkDB 中提供聚合结果

Is there any way/workaround that I can feed the aggregate results in RethinkDB

我有一个聚合查询,我想提供给聚合结果的变化。例如:

r.table('logs').group('message').count().changes()

显然上面的命令失败了。

有什么变通办法可以解决这个变化吗?

不幸的是,当前版本的 RethinkDB 不支持聚合的 Changefeeds。您必须 r.table('logs').changes() 并在客户端中自己进行聚合。

您可以在 https://github.com/rethinkdb/rethinkdb/issues/1118 跟踪添加此功能的进度。