-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid rewriting fields.idx unnecessarily (#21692)
* fix: avoid rewriting fields.idx unnecessarily (#21592) [Port to 1.9] (#21609) 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 #21597 * chore: minor refactor suggested by go lint (#21614) (#21616) (cherry picked from commit 7d10228) (cherry picked from commit f820287) Co-authored-by: davidby-influx <72418212+davidby-influx@users.noreply.github.com>
- Loading branch information
1 parent
260876c
commit 1661b6f
Showing
4 changed files
with
177 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.