정렬을 사용한 MongoDB 지리 공간 쿼리-성능 문제
질문 쿼리가 있습니다 (매우 느린 ~ 2,5s ) : db.markers.find({ latlng: { '$within': { '$box': [ [ -16, -140 ], [ 75, 140 ] ] } } }).sort({_id: -1}).limit(1000) 이 쿼리에 대한 설명을 실행하면 { "cursor" : "GeoBrowse-box", "isMultiKey" : false, "n" : 1000, "nscannedObjects" : 242331, "nscanned" : 242331, "nscannedObjectsAllPlans" : 242331, "nscannedAllPlans" : 242331, "scanAndOrder" : true, "indexOnly" : false, "nYields" : 1..