Optimizing Data Analysis with a Semi-structured Time Series Database