lightning fast redis-powered event based stats
npm install trk

regression is forbidden!
trk is an event based stats library for node.js that uses redis as a data store.depending on the project, it can either be a total replacement for map/reduce
routines, or, at the very least, a catalystic compliment that allows you to
strike a performant balance between real-time data and hierarchical time
bucket(y) reporting.
.record()), the only requirement is it has anevent propertybmp _("bitmap")_ counts unique values occurrences for this keyadd counts number of occurrences for each value of this keyaddv _("add value")_ sum of the values for all occurrences of this keytop similar to add but returns the top occurrence values in order and~ delimiter.query(),.query_days()), see examplesthe data structure in redis ends up looks something like this

and for compound key combinations, if you choose to use them, like this

using npm
```
npm i trk --save
recording speed
build/examples/record-events.iced on a mbp i7(3.1)/16gb`bash
$ node record-events.js
Finished recording 10000 events (series) in 7046ms
Series events digested/sec: 1419.244961680386
Finished recording 10000 events (parallel_limit) in 6449ms
Parallel events digested/sec: 1550.6280043417585
`inspiration
- statsdtodo
- tests
- map.bmp` elaboration (support compound fields)