stevedh / readingdb

readingdb time series database
BSD 2-Clause "Simplified" License
34 stars 11 forks source link

Support for more complex value types #4

Open mitar opened 10 years ago

mitar commented 10 years ago

Currently only doubles are allowed as value types. It would be great if you could pass in Python longs or even dicts.

stevedh commented 10 years ago

I think once you get into that you might be better off using postgres with the hstore or json column types; they're probably going to be way more optimized than what we're doing. Although there might be interesting opportunities for compression given the time-series format!

I'd be down for adding strings though; I think that could come in handy for stuff like logging and a few people have asked for it. It does probably do funny things to the bucketing approach that is really why the compression works in the first place so it's not completely trivial; although you could do a trivial implementation using the protobufs.