by 08-15 · 5y ago · 0 comments
Or maybe a relational DB is already overengineering. Using a hash table (some libdbm lookalike) to map (ip,helo,from,to) to (time) solves the problem, too, and doesn't have a low performance failure mode.
This doesn't change the major point about everyone having been a newbie at point, though.
emit(key, value)
Eg
emit([0,"one"], 2)
And you can query by the value of the key.
Can CouchDB be used in that fashion? Seems a lot more complicated, more like MongoDB than anything.
Best use case though, for me, is key/value durable data storage that you can sync (two ways, no need for master).
As for performance, its pretty fast, but not redis fast as data is written on disk using btree indeces. Retrieving multiple values (documents) with similar looking keys (ids) can be quite fast.