Thermopylae Sciences & Technology has developed a custom spatial indexing solution for MongoDB to allow it to index and query multi-dimensional spatial data at scale. They implemented an R-tree spatial index that stores spatial objects as minimum bounding rectangles. This allows MongoDB to efficiently store and query geometries in more than two dimensions. Their solution also includes a geo-sharding approach to distribute the R-tree across multiple servers for additional scalability. Thermopylae has seen over 300% performance improvements versus PostGIS for spatial queries on large datasets with this customized indexing solution.