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

2 points with same time overwritten? #2055

Closed
sammy007 opened this issue Mar 23, 2015 · 2 comments
Closed

2 points with same time overwritten? #2055

sammy007 opened this issue Mar 23, 2015 · 2 comments

Comments

@sammy007
Copy link

I have distributed app pushing points every minute to avoid thousands of writes once a minute. Points are reduced on app side, then every minute they are going to influxdb. If I pushing 2 points with 1 minute precision to database there will be 1 point actually. Is it expected behaviour? Any design suggestion if so?

@pauldix
Copy link
Member

pauldix commented Mar 23, 2015

Points in a series can not have the same exact time (down to nanosecond). A series is defined by the measurement and tagset. In a typical database you'd have thousands to millions of unique series.

If you only care about minute level precision, you can use the lower order bits to have multiple data points with the same minute timestamp. With that you can have 60 billion points in the same minute in the same series.

This is by design since no one that we know of cares about nanoseconds. Thus they can have many data points all with the same "timestamp"

@pauldix pauldix closed this as completed Mar 23, 2015
@sammy007
Copy link
Author

sammy007 commented Apr 8, 2015

If you only care about minute level precision, you can use the lower order bits to have multiple data points with the same minute timestamp.

Low order bits? Could you post 2 points for example please? Not sure I understood correctly. Does it mean that I should use "ms" precision actually in database and don't care because there will be a few writes anyway because data already aggregated? Thanks.

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