Use cache to improve performance

This commit is contained in:
DingZQ
2025-03-08 23:14:47 +08:00
parent 6e952f62b6
commit ad029b1c92
2 changed files with 15 additions and 3 deletions

View File

@@ -2182,6 +2182,7 @@ async def fastapi_query_scada_data_by_device_id_and_date(ids: str, querydate: st
return influxdb_api.query_SCADA_data_by_device_ID_and_date(query_ids_list=query_ids, query_date=querydate, client=influx_client)
# DingZQ, 2025-03-08
# 返回所有SCADA设备在指定日期的所有记录
@app.get("/queryallscadarecordsbydate/")
async def fastapi_query_all_scada_records_by_date(querydate: str):
return influxdb_api.query_all_SCADA_records_by_date(query_date=querydate, client=influx_client)