(no title)
GhotiFish | 8 years ago
If you have a tiny application, doing a tiny thing, do you need redis? Do you need sqlite? do you need to write some custom-text-file-ma-bob? nah. I feel like simple simple little tools like this are in short supply.
luispedrocoelho|8 years ago
Use redis if you can. Use something like diskhash if you cannot afford the extra overhead of sqlite/redis.
In my case, the alternative we were using before is an in-memory hash table built at startup from a text-based representation of the data. It was pretty good and worked very well up to millions of entries, but at the current scale we work with, it takes least 10 minutes at startup were necessary to build up the thing and it used ~200GB.
fleitz|8 years ago
fl0wenol|8 years ago
If it's more dynamic than that I mean I guess it's cool to have a hash in a backing store that's dead simple.
But at sizes big enough and with enough dynamism that gperf or something similar isn't appropriate I think you should be considering dbm or SQLite, sort of by definition.
SwellJoe|8 years ago