Description:
Context: Historical data writing (WriteHistoricalData) with a scale of approximately 200 calculation channels.
Observation: There is a significant performance disparity between archiving modules:
ModArcBasic: Formula calculation takes tens of milliseconds.
ModArcInflux: Formula calculation takes several seconds.
Impact: ModArcInflux is 10-100x slower than ModArcBasic. Since formula calculation is located in the synchronous write path, this latency causes severe blocking and negatively impacts data acquisition real-time performance.
Root Cause Analysis: The cost of formula calculation under ModArcInflux becomes excessively high as the channel scale increases, creating a bottleneck in the historical write path.