You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ungroup should return a stream if given a stream #2719
This is possible in the specific case where you're grouping by an index, and I think we should support it. I'd classify it as a proposal because it requires new logic, it isn't a matter of just fixing broken behavior. Tagging as a proposal and putting in 1.14-polish.
A workaround for this is to use distinct which emits the group values lazily and still allows the reductions to be performed across all shards. This is much faster than native group in every case I've tried:
@danielmewes noted the only difference between this rewrite and .group(...) is that the distinct can result in empty groups if a document is modified while the query is being run.
Activity
coffeemug commentedon Jul 18, 2014
@mlucy -- what's the expected behavior in this case?
mlucy commentedon Jul 18, 2014
This is possible in the specific case where you're grouping by an index, and I think we should support it. I'd classify it as a proposal because it requires new logic, it isn't a matter of just fixing broken behavior. Tagging as a proposal and putting in 1.14-polish.
coffeemug commentedon Aug 20, 2014
From an API perspective I think this is clear, but putting in reql-discussion for bureaucratic reasons.
Does anyone object if we mark it as settled?
mlucy commentedon Aug 20, 2014
No objections.
mlucy commentedon Sep 9, 2014
Moving out of
reql-discussionsince it's settled.13 remaining items
marshall007 commentedon Jun 24, 2016
A workaround for this is to use
distinctwhich emits the group values lazily and still allows the reductions to be performed across all shards. This is much faster than nativegroupin every case I've tried:@danielmewes noted the only difference between this rewrite and
.group(...)is that the distinct can result in empty groups if a document is modified while the query is being run.ChrisTalman commentedon Aug 15, 2019
Out of curiosity, has this been implemented in 2.4?