简体   繁体   English

带有GeoHashing的Dynamo Db空间搜索

[英]Dynamo Db Spatial Search with GeoHashing

We have a project for a mobile app where an user search for places based on the user position and the category they prefer ("fast food restaurants" for example). 我们有一个针对移动应用程序的项目,在该项目中,用户可以根据用户位置和他们喜欢的类别(例如“快餐店”)搜索地点。 The client want to use Dynamo Db and we are trying hard to understand how to best model the data. 客户想要使用Dynamo Db,我们正在努力了解如何最好地对数据建模。 All queries will be based in two fields: 所有查询将基于两个字段:

An string containing the geohashing value for a rounding box --> That our Hash primary key An int containing the category type of the item --> Range Key 一个字符串,其中包含一个舍入框的geohashing值->我们的哈希主键一个包含项目类别类型的int->范围键

After reading the documentation we found out that the solution doesn't follow the recommendations of Amazon because the Hash Key will be repeated a lot and not will good use of parallel scanning, and the Range Key doesn't represent a range at all. 阅读文档后,我们发现该解决方案不符合Amazon的建议,因为哈希键将被重复很多次,并且不能很好地使用并行扫描,并且Range键根本不代表范围。

So we are kind of lost on how to proceed. 因此,我们在如何进行方面迷失了方向。 Any thanks will be appreciated. 任何感谢将不胜感激。

亚马逊发布了用于地理哈希的库(仅适用于Java) http://aws.typepad.com/aws/2013/09/new-geo-library-for-dynamodb.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM