地理空间支持,SQL Server 08 与 MongoDB?
MongoDB 拥有很多街头信誉,特别是自从 FourSquare 使用它之后。 MS SQL Server 2008 R2 还具有地理空间支持。
哪个数据库更容易/更好地进行类似 GPS 的搜索?例如点 X,Y 周围的 k 个最近点?
MongoDB has lots of street cred especially since FourSquare uses it. MS SQL Server 2008 R2 also has Geospatial support.
Which DB is easier/better for doing GPS-like search? e.g. k-nearest points around point X,Y?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您需要的唯一地理空间函数是查找 X,Y 点周围的 k 个最近点,那么任何旧数据库都可以。只需使用半正矢公式,它就用多种语言实现了。
If the only Geospatial function you need is to find k-nearest points around point X,Y then any old database will do. Just use Haversine formula, and it's been implemented in a bunch of languages.
使用 MongoDB 进行简单地理空间查询
http://blog.mxunit。 org/2010/11/simple-geospatial-queries-with-mongodb.html
比 SQL Server 更容易使用!我喜欢它。
Simple Geospatial Queries with MongoDB
http://blog.mxunit.org/2010/11/simple-geospatial-queries-with-mongodb.html
Much easier to use then SQL Server! I like it.
长话短说,在地理空间支持方面,SQL Server 比 mongo 更强大。但是,如果您只是在地图上存储点并想要计算距离,mongo 就足够了。
MongoDB 支持地理空间点。 SQL Server 支持任意数量点的地理空间对象。
这两种解决方案都可以满足您的地理空间需求,因此更多的是关于您的数据模型、可扩展性以及您喜欢的数据库。
To make a long story short, SQL Server is way more robust than mongo with geospatial support. However, if you are just storing points on a map and want to calculate distances, mongo is more than adequate.
MongoDB supports Geospatial points. SQL Server supports geospatial objects of an arbitrary number of points.
Either solution will be fine for your geospatial needs, so its more about your data model, scalability, and what database your comfortable with.
您可能还想看看 PostGre。 GeoSpatial 数据处理是 PostGre 擅长的地方。但是无法真正告诉您有关 Windows 性能的信息
You might also want to look at PostGre. GeoSpatial data processing is where PostGre excels in. Can't really tell you about Windows performance however