Skip to content

Conversation

@candiduslynx
Copy link
Contributor

@candiduslynx candiduslynx commented Jun 5, 2024

Fixes https://github.com/cloudquery/cloudquery-issues/issues/1567
Fixes https://github.com/cloudquery/cloudquery-issues/issues/1655

The new batch package provides a reusable logic for batching, accounting both for the bytes & rows limits.

@candiduslynx candiduslynx requested a review from disq June 5, 2024 16:17
@github-actions
Copy link

github-actions bot commented Jun 6, 2024

⏱️ Benchmark results

  • Glob-8 ns/op: 93.31

@candiduslynx candiduslynx changed the title feat: Account for bytes limit properly when batching records for writing fix: Account for bytes limit properly when batching records for writing Jun 11, 2024
@github-actions github-actions bot added fix and removed feat fix labels Jun 11, 2024
@candiduslynx candiduslynx requested a review from erezrokah June 17, 2024 17:54
reset limit only when needed

no extra loops
@erezrokah
Copy link
Member

🚢

@kodiakhq kodiakhq bot merged commit 25e554e into main Jun 20, 2024
@kodiakhq kodiakhq bot deleted the feat/batch-slicer branch June 20, 2024 16:03
kodiakhq bot pushed a commit that referenced this pull request Jun 20, 2024
🤖 I have created a release *beep* *boop*
---


## [4.45.6](v4.45.5...v4.45.6) (2024-06-20)


### Bug Fixes

* Account for bytes limit properly when batching records for writing ([#1719](#1719)) ([25e554e](25e554e))
* **deps:** Update dependency go to v1.21.11 ([#1752](#1752)) ([abcb2d4](abcb2d4))
* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.20.2 ([#1754](#1754)) ([6288710](6288710))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants