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

Reset measurement count when cloning an instrument #606

Open
MisterMartin opened this issue Oct 14, 2023 · 0 comments
Open

Reset measurement count when cloning an instrument #606

MisterMartin opened this issue Oct 14, 2023 · 0 comments
Labels
bug reported bug

Comments

@MisterMartin
Copy link
Member

MisterMartin commented Oct 14, 2023

The instrument measurement count is approximate, rather than being counted on demand. This is because it is very expensive to ask Influx to count the number of measurements. The count is a simply stored value which is updated every time a new measurement is added.

When an instrument configuration is cloned (to add a new instrument), all of the metadata is duplicated. This includes the measurement count, even though the existing data are not cloned.

Zero this value during the clone operation.

@MisterMartin MisterMartin added the bug reported bug label Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug reported bug
Projects
None yet
Development

No branches or pull requests

1 participant