haganbt / PYLON-exporter

Utility for exporting data from a PYLON index
4 stars 2 forks source link

Make single time series request when doing custom nested query #58

Closed samaybar closed 9 years ago

samaybar commented 9 years ago

When doing a custom nested query of time series -> frequency distribution, you could reduce the number of queries required by running a single time series to get the keys and then run multiple frequency distributions using the resultant time bands.

e.g.

{
  "interval": "day",
  "then": [
    {
      "type": "freqDist",
      "target": "fb.topics.name",
      "threshold": 100
    },
    {
      "type": "freqDist",
      "target": "fb.hashtags",
      "threshold": 100
    }
  ]
}
haganbt commented 9 years ago

@samaybar - interesting idea. Thanks for logging.

haganbt commented 9 years ago

@samaybar Thinking about this further, I dont think it is something I will implement. The effort of implementing the additional config vs saving 1 query per config item does not seem worth it.

In addition, SE's are not API call bound in any way.

Let me know if you disagree.

samaybar commented 9 years ago

Seems reasonable.

On September 9, 2015 at 11:56:52 AM, haganbt (notifications@github.com) wrote:

@samaybar Thinking about this further, I dont think it is something I will implement. The effort of implementing the additional config vs saving 1 query per config item does not seem worth it.

In addition, SE's are not API call bound in any way.

Let me know if you disagree.

— Reply to this email directly or view it on GitHub.