English 中文(简体)
地理空间指数如何发挥作用? [闭门]
原标题:How does a geospatial index work? [closed]

我很想知道地理空间指数,如MongoDB所使用的地理空间指数如何发挥作用。 谁能解释内部使用何种数据结构/分类? 搜查的时间复杂性如何?

与资源的联系也很大。

最佳回答

视数据类型和使用模式而定,有R-Tree。 或变式: http://en.wikipedia.org/wiki/R%2B_tree。 R+quadtree 或甚至连kd-tree

问题回答

另有 SO question:

The current implementation encodes geographic hash codes atop standard MongoDB B-trees. Results of $near queries are exact. One limitation with this encoding, while fast, is that prefix lookups don t give exact results, especially around bit flip areas. MongoDB solves this by doing a grid-neighbor search after the initial prefix scan to pick up any straggler points. This generally ensures that performance remains very high while providing correct results.





相关问题
adding an index to sql server

I have a query that gets run often. its a dynmaic sql query because the sort by changes. SELECT userID, ROW_NUMBER(OVER created) as rownumber from users where divisionID = @divisionID and ...

Linq to SQL nvarchar problem

I have discovered a huge performance problem in Linq to SQL. When selecting from a table using strings, the parameters passed to sql server are always nvarchar, even when the sql table is a varchar. ...

TableView oval button for Index/counts

Can someone help me create an index/count button for a UITableView, like this one? iTunes http://img.skitch.com/20091107-nwyci84114dxg76wshqwgtauwn.preview.jpg Is there an Apple example, or other ...

Move or copy an entity to another kind

Is there a way to move an entity to another kind in appengine. Say you have a kind defines, and you want to keep a record of deleted entities of that kind. But you want to separate the storage of ...

热门标签