Live data from Hacker News

Redis 3.2.0 is out

antirez.com

61–69 of 69 posts

Re: Redis 3.2.0 is out

#61
post #32

Earlier quoted context omitted.

"without pretending we are going to save the world". I felt a great disturbance in SV, as if millions of voices suddenly cried out in terror and were suddenly silenced.

This. You just made my day.

Just FYI, your comment got flagged but I vouched it. I think these little fragments of appreciation should be okay on HN. Sometimes an upvote just isn't enough.

Re: Redis 3.2.0 is out

#62
post #9

Earlier quoted context omitted.

Geo 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 bounda…

Hey 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.

+1. Would be an extremely useful addition !

Re: Redis 3.2.0 is out

#63
post #9

Earlier quoted context omitted.

Geo 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 bounda…

Hey 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.

That sounds amazing. Do you have a link to the lua script?

UPDATE: found it https://github.com/RedisLabs/geo.lua

Re: Redis 3.2.0 is out

#65

The geo API seems rather... specific. Is there really a demand for it?

Geo 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 bounda…

I 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 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?

Re: Redis 3.2.0 is out

#66

The 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.

I 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.

You 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.

Re: Redis 3.2.0 is out

#67

The geo API seems rather... specific. Is there really a demand for it?

The 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-boundi... or e.g.: http://postgis.refractions.net/docs/ST_MakeEnvelope.html

Re: Redis 3.2.0 is out

#68
post #53
post #28

Earlier quoted context omitted.

Thanks, 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 g…

This is it. Redis is one of the few things in the data-persistence space that is honest about what it can't do. So many other DBs, caches, or whatever will promise that they can solve all my problems, making me quite angry when I spend weeks developing around them and find out that I've just wasted all that time because their marketing people lied to me.

I'm curious: other than the obvious (MongoDB) what are the other offenders?

Re: Redis 3.2.0 is out

#69
post #53

Earlier quoted context omitted.

This is it. Redis is one of the few things in the data-persistence space that is honest about what it can't do. So many other DBs, caches, or whatever will promise that they can solve all my problems, making me quite angry when I spend weeks developing around them and find out that I've just wasted all that time because their marketing people lied to me.

I'm curious: other than the obvious (MongoDB) what are the other offenders?

Graph databases. They can handle your big data! Wait... did you say you had gigabytes of data? Multiple gigabytes? Oh dear, you're going to need to scale up to an enterprise cluster. What sort of madman would keep a whole gigabyte of graph data on one poor little computer?

Riak 1.x. Anyone remember Riak Search? Not the one in 2.x that offloads it to Solr (I don't know if that actually works), but the one before that, the one they deprecated before there was anything to replace it with.

Any database that promises that you can solve your problems with MapReduce. The developers do not actually want you to MapReduce inside their database. It will probably stall your database so hard it makes it unavailable. Their sales people made them put it on the feature checklist.

Post reply on HN