background preloader

Mongodb

Facebook Twitter

Checkershadow Illusion. Cloud Hosted MongoDB. Geospatial Indexing. This document provides a more in-depth explanation of the internals of MongoDB’s 2d geospatial indexes.

Geospatial Indexing

This material is not necessary for normal operations or application development but may be useful for troubleshooting and for further understanding. Calculation of Geohash Values for 2d Indexes When you create a geospatial index on legacy coordinate pairs, MongoDB computes geohash values for the coordinate pairs within the specified location range and then indexes the geohash values. To calculate a geohash value, recursively divide a two-dimensional map into quadrants.