I've been playing with Vega (love it!) and I have a use case that is generating a lot of unnecessary data that is slowing kibana/vega to a crawl. It's because I am doing a pipeline aggregation of an aggregation...
I want to find the sum of lots of things and then the average of all of those. But I only need to plot the final average so the returned aggregation of sums is not required in vega. This represents the majority of the data being processed and stored by vega.
Now if I was to do this with a rest/dsl call I'd use "filter_path" to get rid of the intermediate data results (e.g. How to filter out useless aggregation result when using pipeline aggregations).
Is something like this possible in vega or would it make a good feature request? I had a look at the transform filter but I'm not sure that actually drops data or helps reduce the initial load time.