Hi all
The following is a draft specification for a function that avoids duplication of records with a CREATE and instead performs an UPDATE. It is not clear to me what is the most efficient tool to implement this functionality for influxdb 1.8, Capacitor or Telegraf and would therefore welcome any suggestions.
Specification and Requirements for UPDATE (with DELETE/CREATE)
- Condition is that the timestamp and all of the following tags are identical:
- tag1
- tag2
- tag3
- Copy all fields and tags from the old record to the new record.
- Write all fields and tags that are provided in the new input into the new record. Either add these as new fields/tags if they do not exist in the old record or overwrite any existing field/tags if they already exist in the old record.
Many thanks for any help
E