Open dmehra opened 8 years ago
sort
: The data should always be sorted by time. Use case for sorting by another field when you have time-series data?RE: A use case for sorting time-series data by something other than time. It's rare, but it can come up. For instance, I once was taking granular measurements of CPU of a device at a regular interval. As we know, downsampling a large number of values like that can yield a different result based on whether one takes the mean, the median, or something else. To illustrate this, I was sorting the points by value and then charting them, showing when the values created a "long tail" or other distribution curve.
Anyway, I don't say that to claim it should be a high priority, but just letting you know it exists.
Offhand I did not locate either sorting, or a limit option in OpenTSDB, but I only briefly glanced. If we can optimize
sort
,head
andtail
procs, let's do it...