siong1987/flo — pull request #3 by Wred (2012-08-27 19:09:12+00:00)
Title: remove_term

Hi Siong,

I've added a remove_term function and a small test in autocomplete.test.coffee. This is my first attempt at working with CoffeeScript (although I have lots of experience with Node and JS) so it would be great if you could check the code.

I'd like to add a function that could return an id for a specific term but looking at the way the data is structured in Redis, I don't think that's currently possible. I'm currently using it with over 2 million artist names and my unique id was simply a count. I guess if I used the term as the unique id, I should be ok but I wonder what kind of performance hit I'd get and how much bigger the db would be (it's currently about 1.4 gigs).

Anyways, thanks for this and I hope I've managed to make a decent contribution.