1.

Point out the correct statement.(a) Both 2dsphere and 2d geospatial indexes support $geoWithin(b) $geoWithin does not require a geospatial index(c) The $geoWithin operator does not return sorted results(d) None of the mentionedThis question was posed to me during an interview.My question comes from Geospatial Index topic in chapter Index/Indexing Concepts of MongoDB

Answer»

The CORRECT ANSWER is (b) $geoWithin does not require a geospatial index

For explanation I would SAY: HOWEVER, a geospatial index will improve query PERFORMANCE.



Discussion

No Comment Found

Related InterviewSolutions