InfluxDB Duplicate Points: Which Fields Survive
2026-11-09

InfluxDB Duplicate Points: Which Fields Survive

InfluxDB Duplicate Points can occur when two writes refer to the same telemetry identity. In InfluxDB OSS v2, that identity combines a measurement name, the complete tag set and a timestamp. When those parts agree, the second write can update one field while leaving another field from the earlier write in the point.

Measurement, tags and time identify the point

The InfluxData guide identifies three parts of a line protocol record for duplicate detection. The measurement names the collection of values. The tag set is the combination of the tag keys and their values for that record. The timestamp places it on the time axis. Fields carry the measured values associated with that identity.

For example, a telemetry record may use a measurement named robot_sample, a tag identifying a cell and a timestamp for the sample. Temperature and current can be fields. A later write with the same measurement, tag set and timestamp refers to the same point even if it supplies only one of those fields.

Both writes have equal measurement robot_sample, tag cell=A and time t0; field payload is displayed separately.
The field values are merged after comparing identity. Source: Zhilianhai editorial desk, original AI-assisted concept; no real product, event or measured data.

A matching identity merges the field sets

Consider an existing point with temperature 38 and current 2.1 in illustrative units. A later point with the same identity supplies temperature 39 and no current field. According to the OSS v2 duplicate rule, the new temperature takes the place of the old temperature. The existing current remains because the later write did not include a conflicting value for that field.

A second kind of update can add a field absent from the earlier point. If that later write carries a new vibration field under the same identity, it becomes part of the merged set. The rule preserves field names found in either write and uses the new value where the same field key occurs in both.

The old point holds temperature 38 and current 2.1, the new write gives temperature 39, and the result has temperature 39 and current 2.1.
The current field survives because the later write does not supply it. Source: Zhilianhai editorial desk, original AI-assisted concept; no real product, event or measured data.

A different tag set can retain separate observations

Two points at the same timestamp can remain distinct when their complete tag sets differ. The manufacturer guide illustrates adding a distinct tag as one way to preserve separate records. In a fleet example, a genuine cell identifier already distinguishes measurements from different cells even when the recorded times coincide.

Changing an identity field has implications for later queries. If a new tag is used to distinguish repeat observations, the reader has another attribute to track when grouping or filtering points. A value intended only as a measured quantity belongs to the field set and does not on its own distinguish otherwise matching identities.

Timestamp precision can collapse distinct samples

The InfluxData FAQ notes that using too coarse a write precision can cause distinct samples from the same series to receive the same stored time and be treated as duplicates. For instance, two events from one robot might have been observed at different fractions of the same second. If the recording path reduces both times to the same whole second, the distinction between their times is lost at ingestion.

The FAQ also notes that stored times have nanosecond representation regardless of the submitted precision. A long timestamp in a readout does not on its own show that the source distinguished observations to that resolution. The actual acquisition clock and the precision chosen on the write path are separate details.

The duplicate behavior then depends on the stored identity and fields. One event can overwrite a field supplied by the other while leaving a different field in place. The merged record can consequently contain values written during two originally separate events. A data export can preserve the source timing rule alongside the point schema to make this outcome interpretable.

Read the result in the context of the writer

A pipeline that deliberately revises one value at the same sample time can use the documented merge behavior to retain other fields. A pipeline that expects one record per distinct observation needs identities that distinguish those observations. Both cases benefit from documenting what each tag means and how the timestamp is produced.

The two source events in the example could also share a tag and time because the writer intentionally associated their measurements with one acquisition. The same output point can therefore be expected or unexpected depending on the intended event model. The contents of the merged point alone cannot establish that intention.

When reviewing a discrepancy, compare the identities first and then check the overlapping field keys. This separates two questions that otherwise get conflated. The first is whether the database sees one point or two. The second is which fields and values remain when the two writes refer to one identity.

The InfluxDB OSS v2 duplicate points guide explains identity and field merging. The InfluxDB OSS v2 FAQ discusses duplicate points and write precision. Related material appears in the robot telemetry data reference and technical article directory.

18028484626 CONTACT US

公司:智联海(惠州)科技有限公司

地址:惠州仲恺高新区陈江街道白云山工业大道 5 号六楼 601

Q Q:18028484626

Copyright © 2002-2026

粤xxx

咨询 在线留言 电话:18028484626
微信 微信扫码添加我