Mongo aggregate fails?

瀏覽次數:16 次
跳到第一則未讀訊息

Damon Casale

未讀,
2016年4月17日 晚上7:22:042016/4/17
收件者:mongodb-user
I'm unable to run a Mongo aggregate command.  It prints "..." in the command shell and never finishes.  Even explain stalls.

I'm trying to do this:

db.listings.aggregate([{$group: {'_id': {AssignedNeighborhood: $AssignedNeighborhood}, 'count': {$sum: 1}}], {explain: true})

What am I doing wrong?  Please help.

Mongo version is 2.6.11.  And yes, I have an index on AssignedNeighborhood.

Damon

Asya Kamsky

未讀,
2016年4月18日 凌晨12:08:542016/4/18
收件者:mongod...@googlegroups.com
You don't have enough closing braces } you need one more before ] 

The ... means it's waiting for more input. 
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/9764263d-1c10-4615-8d47-cf9488cad278%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Asya Kamsky
Lead Product Manager
MongoDB
Download MongoDB - mongodb.org/downloads
Free MongoDB Monitoring - cloud.mongodb.com
Free Online Education - university.mongodb.com
Get Involved - mongodb.org/community
We're Hiring! - https://www.mongodb.com/careers
回覆所有人
回覆作者
轉寄
0 則新訊息