12 ms·
Redis 3.2.0 is out
- aeharding 10y agoThe geo API seems rather... specific. Is there really a demand for it?
- joeblau 10y agoBack 5 years ago, this would have helped us at our company. We were doing realtime data analytics and we had to dump our data to Postgres to run any geo queries.
- antirez 10y agoIf you think to geo-aware mobile applications, many are of the kind "show me XYZ near me". So that's the main use case basically. According to the fact a lot of people switched to 3.2 while it was yet not stable in order to use this feature I believe there is a big demand.
- PaulRobinson 10y agoGeo is insanely useful when you're after stuff within x miles of a known location - so a lot of mobile apps. My problem with many existing geo implementations is they assume that a circular radius is the query type I care about, and longitude and latitude is sufficient to know where I actually am in terms of jurisdiction, etc. Being able to add fine grained polygons to represent national, state, county or town boundaries and being able to identify the relationships between my co-ordinates and those entities is still far more complex than I would like. Adding polygon support might be an interesting exercise, actually.
- antirez 10y agoHey Paul, we have this feature added as a Lua script, but adding it in a native way could be interesting actually. Itamar Haber wrote the Lua script and was pushing for adding it in a native way, I wanted to check after the release the actual demand for it.
- marktangotango 10y agoI personally don't have a use right now, but that sounds incredibly useful!
- Doctor_Fegg 10y agoYes please! So much interesting stuff that this would enable.
- endijs 10y ago+1 from me. This would be good addition!
- rch 10y agoThe ability to query with polygons defined by transit isochrones would be broadly useful.
- tyre 10y agoThis would be extremely helpful. We work with local governments and they have a cornucopia of geo-boundaries to query across. PostGIS works really well, but providing a cache-layer on top via Redis for simple counts would be amazing.
- har777 10y ago+1. Would be an extremely useful addition !
- simonw 10y agoThat sounds amazing. Do you have a link to the lua script? UPDATE: found it https://github.com/RedisLabs/geo.lua https://github.com/RedisLabs/geo.lua
- masklinn 10y ago> My problem with many existing geo implementations is they assume that a circular radius is the query type I care about Really? Wouldn't most GIS implement something like OGC Simple Features? AFAIK all SQL GIS implementations follow that (to various levels of completeness, but even MySQL has shapes support since 5.6)
- chipsambos 10y agoI work on a SaaS spatial product and had to come up with a solution to the same point/boundary problem. It needed to be 'fast' (ideally <3s) when filtering, rendering, styling and summarising 100k points within 43k polygons (so say 100k shop locations within many state, county and zip/zcta codes in US). DB is Oracle 11g for several reasons: product is larger and older than this requirement, small team has solely expertise with oracle and zero commercial experience with nosql dbs (good devs though and have showed interest in and toyed with nosql dbs) plus standard budget/time constraints. Solution was to add a hidden column for each administrative category (e.g. for US: region, state, county, zcta) to each point record to replace spatial searches with filtering. Would something like that work for you? What kind of numbers of points and polygons are you looking at and how quickly do you need to solve the problem?
- NatW 10y agoThe Geo API allows it to work like a search engine. On my wish list would be adding a bounding box query to return results within a map displayed on the current screen: e.g.: https://www.algolia.com/doc/javascript#search__inside-bounding-box https://www.algolia.com/doc/javascript#search__inside-boundi... or e.g.: http://postgis.refractions.net/docs/ST_MakeEnvelope.html http://postgis.refractions.net/docs/ST_MakeEnvelope.html
- cft 10y agoI like their new GEO sorted set with latitude and longitude. Can someone point me to a [reasonably priced] geocoding database to display nearest Town, Region (only where appropriate), Country (in English) based on latitude and longitude?
- okramcivokram 10y agoI've used GeoNames (geonames.org) for a few projects.
- cft 10y agoI was turned off by their blurp that their US zip codes database contains only 21k zips out of 41.5k. Are they sufficiently complete for small towns?
- hamandcheese 10y agoThe incomplete zips (for at least one database I've read about) come from corporate or industrial areas where not many people actually live.
- maxerickson 10y agoOfficially US zip codes are just collections of addresses, they don't necessarily correspond to areas. I think most free datasets are probably just the areas that Census derived for TIGER (or at the very least, rely heavily on that data).
- lucaspiller 10y agoI'm using it for a photo app (I only need town/city level granularity), and it works well for my needs. Note that the dataset is based upon populated places though, so YMMV if you need to lookup somewhere in the middle of nowhere. Here is a JavaScript library I wrote for it, along with some scripts for munging the GeoNames dataset: https://github.com/lucaspiller/offline-geocoder/ https://github.com/lucaspiller/offline-geocoder/ If you need higher granularity, take a look at this OSM project: https://github.com/twain47/Nominatim/ https://github.com/twain47/Nominatim/
- netcraft 10y agodoes anyone know how quickly the official docker containers will be out? https://hub.docker.com/_/redis/ https://hub.docker.com/_/redis/ Could build it myself but if the official image will be out in a day or so id rather wait I think.
- TimWolla 10y agoI just submitted a pull request: https://github.com/docker-library/redis/pull/57 https://github.com/docker-library/redis/pull/57
- netcraft 10y agonice! didn't realize thats how that worked.
- TimWolla 10y agoTo expand on that topic: You can find all the Dockerfiles of the official images linked at the very top on Docker Hub [1]. Once my pull request is merged a Docker-Redis maintainer will have to open another pull request to update the references of the official image on Docker hub [2]. In fact I already updated the Redis Docker image once. You can see the full process there [3]. [1] https://hub.docker.com/_/redis/ https://hub.docker.com/_/redis/ [2] https://github.com/docker-library/official-images/pulls https://github.com/docker-library/official-images/pulls [3] https://github.com/docker-library/redis/pull/25 https://github.com/docker-library/redis/pull/25
- xomateix 10y agoJust realised that http://download.redis.io/ http://download.redis.io/ is not available under https (neither is http://redis.io http://redis.io). It may be worth downloading it from github.
- antirez 10y agoOr you could download from redis.io and check the hashes we publish at Github: https://github.com/antirez/redis-hashes https://github.com/antirez/redis-hashes
- koolba 10y agoRedis is in a very small category of software that's been pleasant to work with from day one and continues to be on a daily basis. Kudos to antirez on everything before this and another great release.
- Mahn 10y agoIn fact it's quite possibly the only piece of software that HN hasn't bashed or harshly criticized so far :)
- annnnd 10y agoHaproxy is there too...
- cullenking 10y agoOn the same note, I'd put nginx high up there. Aside from the occasional config funkiness (which I can forgive them for) it's an amazingly useful, versatile and efficient tool. Can't complain too much about it. I think nginx and redis are my two favorite often used pieces stack.
- antirez 10y agoThanks, I really receive good sentiments from the community. I've the feeling that this is not due just to the fact that many developers find Redis useful. It has very serious limits like many other softwares. It is that so far Redis was never proposed as "The Shit", the silver bullet that will save you from your data problem. Is just something I and the other contribs try to do with love, without pretending we are going to save the world. I wish this vision was a bit more common, but (un)fortunately data now is an hot topic with too much money on the table, so feelings are a bit over excited sometimes. EDIT: Many marketing/business people basically don't understand that you cannot over-sell to developers. The effect is the contrary, you turn people down when you try to say you did something too cool to be true, so this strategy also does not work in the long run.
- 10y ago
- justjico 10y agoIf I was a betting man, I would bet the new "interesting feature" is related to time series. Or maybe that's just my wishful thinking.
- matt2000 10y agoThe new BITFIELD seems like it could be really cool, but I can't quite figure out the use case. Anybody planning on using that that can enlighten me? Thanks.
- cullenking 10y agoI plan on using it to track what database objects have a corresponding cached image thumbnail. 10 million objects in my database, thumbnails generated on the fly, fast get/set the unique ID of the object in the bitfield. very small storage for what you get.
- Gigablah 10y agoYou can already do this using BITSET -- I tracked 100 million objects with incremental integer keys during a migration process and it worked great. From what I read, BITFIELD behaves differently -- it treats your data as a series of "packed" bits. So while with BITSET you operate on each bit individually, with BITFIELD you operate on a series of bits with a starting offset, and you have to be mindful of the length.
- kinkdr 10y agoI've been using RC for a couple of months now in production, albeit my site is very small, and has been proven rock-stable. And the code is a pleasure to read. Amazing piece of software! Keep up the good work!