-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
snippets
Discontinued Little helpful pieces of code I wrote, then found lying around in the snippets storeroom behind the red door in the rainforest. (by jbruchon)
I only need it to work in my use case. I already had the script. It's not worth the effort to recode in something else. I didn't need an advanced data structure per se, I just needed a cheap lookup table. This was definitely at the limits of what I'd try to do with a shell script, though. I have written special-purpose C code to replace a shell script's "hottest" area in the past. I just really didn't want to do anything like that with something that is not a required tool for my workflow.
There is also the matter of processing the data after the "scores" are updated. I do two things: numeric sort -g (not often) or convert the per-file scores to per-directory scores with this script. If I were using SQLite, I'd end up dumping the DB to a text representation and parsing that anyway, or I'd have to write a complex query of some sort to get SQLite to produce the per-directory numbers for me, and I'm not 100% sure that it could be done in SQL alone; I'd probably want to store the data differently, and that adds yet more complexity.