-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
InfluxDB 09: Feature Request: JSON time values as epoch numbers instead of date strings #2599
Comments
For response size, GZIP should help with that. What are you seeing in terms of the network traffic? On parse speeds, do you have any numbers of parsing date strings vs. epochs? This can probably be added at some point without too much work. Just curious what the level of pain is on this feature. |
I do not have any benchmarks or stats but can imagine that the deserialization will take longer and take more memory. Also worried about memory in general, grafana slows down during browser GC and so need to conserve memory :) |
Date string parsing is 46% slower than epoch numbers, on my browser - http://jsperf.com/date-parsing-string-vs-epoch-number |
This seems pretty easy to do and I know we have a few cycles while waiting for me to finish some query engine refactoring for the new clustering design. @dgnorton, can you have a look? I'm thinking this should be done through a single query parameter named Should support |
That sounds great. |
@neonstalwart, thanks for the suggestion.
I am not sure this is possible now. But it would be good to have an option to return epochs instead of full JSON Date strings.
Reduces the response size and parse speed for browsers.
In InfluxDB 0.8 it was epochs not sure why this was changed. It is not a big issue for me, but would be a nice to have.
The text was updated successfully, but these errors were encountered: