Hi, we experimented with the following CQ:
CREATE CONTINUOUS QUERY "hist_data_365d" ON "benchmark_hist_data" RESAMPLE EVERY 15m FOR 365d BEGIN
SELECT mean("Grd_Prod_Pwr_Avg") AS "mean_Grd_Prod_Pwr_Avg",
mean("Prod_TotAccumulated_TotActPwr") AS "mean_Prod_TotAccumulated_TotActPwr",
mean("Nac_Temp_Avg") AS "mean_Nac_Temp_Avg",
mean("Amb_WindSpeed_Avg") AS "mean_Amb_WindSpeed_Avg",
mean("Amb_WindSpeed_Max") AS "mean_Amb_WindSpeed_Max",
mean("Amb_WindSpeed_Min") AS "mean_Amb_WindSpeed_Min",
mean("Blds_BladeA_BLPitchAngle_Avg") AS "mean_Blds_BladeA_BLPitchAngle_Avg",
mean("Blds_BladeA_BLPitchRef_Avg") AS "mean_Blds_BladeA_BLPitchRef_Avg",
mean("Blds_BladeA_CntlVolt_Avg") AS "mean_Blds_BladeA_CntlVolt_Avg",
mean("Blds_BladeB_BLPitchAngle_Avg") AS "mean_Blds_BladeB_BLPitchAngle_Avg",
mean("Blds_BladeB_BLPitchRef_Avg") AS "mean_Blds_BladeB_BLPitchRef_Avg",
mean("Blds_BladeB_CntlVolt_Avg") AS "mean_Blds_BladeB_CntlVolt_Avg",
mean("Blds_BladeC_BLPitchAngle_Avg") AS "mean_Blds_BladeC_BLPitchAngle_Avg",
mean("Blds_BladeC_BLPitchRef_Avg") AS "mean_Blds_BladeC_BLPitchRef_Avg",
mean("Blds_BladeC_CntlVolt_Avg") AS "mean_Blds_BladeC_CntlVolt_Avg",
mean("Cont_Hub_Temp_Avg") AS "mean_Cont_Hub_Temp_Avg",
mean("Cont_Top_Temp_Avg") AS "mean_Cont_Top_Temp_Avg",
mean("Cont_VCP_Temp_Avg") AS "mean_Cont_VCP_Temp_Avg",
mean("Count_ConsumedPower") AS "mean_Count_ConsumedPower",
mean("Count_ConsumedReactivePow") AS "mean_Count_ConsumedReactivePow"
INTO "downsampled-365d"
FROM "signals"
GROUP BY time(996m),"AssetId"
END
We want to downsample existing data into smaller views…
Are we on the wrong path here?