Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Rethinkdb 中分组后如何排序,如在 sql 中:
select count(id) as cid, ... from x group by y order by cid desc
如果我正确理解了您的问题,那么您要查找的查询是(在 JavaScript 中)
r.table("x").group("y").count().ungroup().orderBy("reduction")
在 Python/Ruby 中,它将是
r.table("x").group("y").count().ungroup().order_by("reduction")