我有一个MySQL表,包含大约100万个纬度和经度,每行有一个主键值.
我想通过Geohashing或lat和lon排序集将此表迁移到Redis中.
有没有人这样做过?您用于存储和查询数据的方法是什么(例如:在Google地图的纬度/经度范围内查询数据).
是的,它已经完成(使用geohashing ...)
您可以检查Geodis包后面的数据结构(来自Dvir Volk和朋友):
https://github.com/doat/geodis
在Redis邮件列表上有一些关于它的讨论:
https://groups.google.com/d/topic/redis-db/Mw0lRzutnkE/discussion https://groups.google.com/d/topic/redis-db/6M-aAPA-iXc/discussion https:// groups.google.com/d/topic/redis-db/Bps95jeRgr8/discussion
归档时间: |
|
查看次数: |
4959 次 |
最近记录: |