0

Usually I don't trust clients time when inserting time series data.

Is it possible to tell Riak to insert a record using server side current time? Something like now() function in InfluxDB: https://docs.influxdata.com/influxdb/v1.1/concepts/glossary/#now

INSERT INTO Results VALUES ('MyResult, now()); ???

Ricardo Mayerhofer
  • 2,121
  • 20
  • 22

1 Answers1

2

Riak TS does not currently include the equivalent of a Now() function. It is possible that an equivalent function will be added in the future however implementation of a server side Now() type function has challenges related to the distributed nature of Riak TS and synchronization of time across a cluster of servers. As a rule using client generated time stamps in your application will limit the potential for conflicts (events being written out of order).

Craig
  • 1,001
  • 6
  • 11