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

fix: avoid rewriting fields.idx unnecessarily (#21592) #21610

Merged
merged 7 commits into from
Jun 4, 2021

Conversation

davidby-influx
Copy link
Contributor

@davidby-influx davidby-influx commented Jun 4, 2021

Under heavy write load creating new fields and measurements
the rewrite of the fields.idx file is a bottleneck. This
enhancement combines multiple writes into a single one and
shares any error return value with all of the combined
invocations. MeasurementFieldSet and the new
MeasurementFieldSetWriter must both now be explicitly
closed.

Closes #21577

(cherry picked from commit f64be28)

Closes #21598

Describe your proposed changes here.

Under heavy write load creating new fields and measurements
the rewrite of the fields.idx file is a bottleneck. This
enhancement combines multiple writes into a single one and
shares any error return value with all of the combined
invocations. MeasurementFieldSet and the new
MeasurementFieldSetWriter must both now be explicitly
closed.

Closes #21577

(cherry picked from commit f64be28)
CHANGELOG.md Outdated Show resolved Hide resolved
davidby-influx and others added 2 commits June 4, 2021 10:55
Co-authored-by: Daniel Moran <danxmoran@gmail.com>
@davidby-influx davidby-influx merged commit d10a727 into master Jun 4, 2021
@davidby-influx davidby-influx deleted the DSB_field_channels_master branch June 4, 2021 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants