Skip to content
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

TimeStamp resolution and fast writes #25

Open
Toshbrown opened this issue May 2, 2018 · 2 comments
Open

TimeStamp resolution and fast writes #25

Toshbrown opened this issue May 2, 2018 · 2 comments

Comments

@Toshbrown
Copy link

It is possible to write to the store faster than the smallest resolution of the timestamp in milliseconds.

When this happens the data return by latest, earliest API calls can be out of order causing tests to fail.

@jptmoore
Copy link
Collaborator

jptmoore commented May 2, 2018

Yes, if you write with the same timestamp the write order is not guaranteed. Items in the series with the same timestamps are effectively equal in order. I think it might be worth considering a move to nanosecond timestamps if this is an issue.

@Toshbrown
Copy link
Author

I'm not sure it's a practical issue, as writing at 100hz is probably beyond what most applications require. If it's not too tricky to move to using nanosecond internally but still keeping milliseconds externally. Then it might be worth adding to the todo list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants