Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to optimize sort, head and tail? #21

Open
dmehra opened this issue Feb 12, 2016 · 2 comments
Open

Is it possible to optimize sort, head and tail? #21

dmehra opened this issue Feb 12, 2016 · 2 comments
Labels

Comments

@dmehra
Copy link
Contributor

dmehra commented Feb 12, 2016

Offhand I did not locate either sorting, or a limit option in OpenTSDB, but I only briefly glanced. If we can optimize sort, head and tail procs, let's do it...

@VladVega
Copy link
Contributor

  1. sort: The data should always be sorted by time. Use case for sorting by another field when you have time-series data?
  2. head and tail...seems like opentsdb doesn't support those kinds of optimizations. They support downsampling though: http://opentsdb.net/docs/build/html/user_guide/query/index.html

@philrz
Copy link

philrz commented Feb 15, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants