Use aggregate $geoNear with big collections

9 views
Skip to first unread message

Oriol Batalla

unread,
Feb 19, 2018, 3:57:20 PM2/19/18
to mongodb-user
Hello
I have been reading many posts and sites trying to figure out how to use geoNear on a agregate query with big documents.  My query hits the 16Mb limit very quick. 
I can't use project to reduce the size of the documents because geoNear needs to be the first on the pipeline.  
Is there any elegant way to overcome this limitation so an aggregate query can return all the results to be use as a part of an aggregate query?
Thanks!

Kevin Adistambha

unread,
Feb 20, 2018, 10:13:10 PM2/20/18
to mongodb-user

Hi

There are some additional information that is required before we know how to solve the issue.

Could you post:

  • Your MongoDB version
  • Some example documents
  • Your aggregation query
  • An example of the desired result
  • The exact error message you’re seeing

Best regards
Kevin

Reply all
Reply to author
Forward
0 new messages