Geospatial Query Performance issue in large collection

28 views
Skip to first unread message

Sougata Pal.

unread,
Oct 12, 2012, 2:57:37 PM10/12/12
to mongod...@googlegroups.com
Hi,

I have been running Geospatial query to search nearby places using $near and $maxDistance but it seems very very slow with large collection having 6M+ entries. The field is indexed as geospatial. Please let me know if I am doing something wrong or how to optimize the query.

--
Thanks
Sougata Pal.
Chief Architect, Techunits
http://in.linkedin.com/in/skallpaul

Sid

unread,
Oct 12, 2012, 4:11:21 PM10/12/12
to mongod...@googlegroups.com
Can you do a explain() on the query and post the output here.
Reply all
Reply to author
Forward
0 new messages