-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow write precision of TimeUnit other than Nanoseconds #182
Comments
+1 |
1 similar comment
+1 |
+1 One of InfluxDB best practices is to lower point precision to improve service performance and disk usage. This is much more serious of a bug than a suggestion / feature request. |
It seems there are 2 places where this issue take place:
The desired precision should be passed down to whatever is formatting points to be written defaulting to nanosecond if/when not specified. |
Hi, thanks for the analysis, can you prepare a PR to show howto solve this issue ? |
I am working on a PR for this but I am unsure how to test it. Since the tests are directly hitting on an influxdb instance, is there any way to know the time precision of inserted points using queries ? |
@joelmarty so for testing this I imagine there would be a mock InfluxDB service that would examine if the points' timestamps were of nanosecond precision vs an expected precision. could you post a link to your fork with the fix as I'm finally being freed to do more time series work and would like to contribute. |
I created a pull request there: #321 It's based on an older version of the client and I don't have the time to work on it atm so there's conflicts but I hope you'll be able to work with that. |
+1 |
I guess this should be closed now. |
In batching writes all the batch still defaults to nanos. Regardless of points precision. |
Unless there has been a PR elsewhere to fix this, this is still a legit bug. The fact this has sat here for 2+ years doesn’t reflect well on Influx as supporting its customers, which is probably why everyone moving to Prometheus. |
@andyfeller this is not a defect of influxdb-java which only can write what influxdb supports. influxdb-java is not a influx.com product, its a community maintained open source project. |
@andyfeller thanks for pointing out this is still a relevant issue that should be fixed. I'm reopening this ticket and I'll work on it when possible (obviously we would be happy to have your support here, in case you could submit a PR :) ). |
Would like to make use of the compression gains based on using an appropriate time precision.
The text was updated successfully, but these errors were encountered: