What's the most efficient way to extract measurements?

Hi all!

I’m trying to understand what’s the best way to extract metrics for ad-hoc analytics, e.g. grab the values of a certain series for a month or wo.

There are two endpoints:

Grabbing measurement objects vs grabbing series values. Measurement objects can be big - if I need just the values of a single series that might be less efficient. Series collection though performs aggregation, not sure about that efficiency.

So - is there a general recommendation? Did anyone do a performance test maybe? A crossover point somewhere?

Looking forward to your thoughts!

Best, Christoph

getSeries is more efficient for you, because it already does the filtering before passing you the result. I don’t think it’s more efficient for the platform than just getting the measurements, because all measurement objects still need to be retrieved and scanned in order to check if the series exists in that measurement.

For a “fun” example of this, try retrieving the latest value of a series with a large history. It can take minutes.