influxdb-cxx icon indicating copy to clipboard operation
influxdb-cxx copied to clipboard

Feature request, add time resolution?

Open cmongolang opened this issue 4 years ago • 3 comments

The influxDB docs recommend using the coarsest time precision possible. Would it be possible to add capability to specify time precision? I have been able to change this manually by changing from nanoseconds to milliseconds in Point.cxx, but I don't know how to work this in with the templates. https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/optimize-writes/#use-the-coarsest-time-precision-possible

cmongolang avatar Apr 09 '21 06:04 cmongolang

The current API doesn't support other precisions yet unfortunately. This will need some additional work, since it should maintain compatibility and not introduce hacks or other ugly APIs. But I'll keep this on the list, especially towards v2 support.

offa avatar Apr 09 '21 16:04 offa

@cmongolang Can you show your change?

ronytigo avatar Jan 28 '23 12:01 ronytigo

You can modify the resolution here.

offa avatar Jan 28 '23 15:01 offa