-
Notifications
You must be signed in to change notification settings - Fork 24
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: MixedBatchWriter should nil the slice instead of zeroing #1553
Conversation
⏱️ Benchmark results
|
🤖 I have created a release *beep* *boop* --- ## [4.32.1](v4.32.0...v4.32.1) (2024-03-06) ### Bug Fixes * **deps:** Update golang.org/x/exp digest to 814bf88 ([#1540](#1540)) ([e80fb24](e80fb24)) * **deps:** Update google.golang.org/genproto/googleapis/api digest to df926f6 ([#1541](#1541)) ([9d8a3ec](9d8a3ec)) * **deps:** Update google.golang.org/genproto/googleapis/rpc digest to df926f6 ([#1543](#1543)) ([9315c16](9315c16)) * **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.19.1 ([#1549](#1549)) ([3112739](3112739)) * **deps:** Update module github.com/klauspost/compress to v1.17.7 ([#1544](#1544)) ([4e04027](4e04027)) * **deps:** Update module github.com/klauspost/cpuid/v2 to v2.2.7 ([#1545](#1545)) ([0fff7ed](0fff7ed)) * **deps:** Update module github.com/tdewolff/minify/v2 to v2.20.18 ([#1546](#1546)) ([45fa641](45fa641)) * **deps:** Update module github.com/ugorji/go/codec to v1.2.12 ([#1547](#1547)) ([cd3488a](cd3488a)) * **deps:** Update module google.golang.org/grpc to v1.62.0 ([#1550](#1550)) ([9ccec98](9ccec98)) * **deps:** Update module google.golang.org/grpc to v1.62.0 ([#1551](#1551)) ([d907120](d907120)) * MixedBatchWriter should nil the slice instead of zeroing ([#1553](#1553)) ([f565da8](f565da8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
nil
[:0]
|
Yeah, seems like pg v7.3.7 (without this change) can write 8K rows/sec in the AWS src scenario, while 7.3.8 (with this fix) can handle write only around 3K rows/sec |
Looks like this introduced a bug regarding |
Helps with memory.
Benched with #1552, old:
new: