Skip to content

Conversation

@jjaakola-aiven
Copy link
Contributor

@jjaakola-aiven jjaakola-aiven commented Nov 5, 2025

The fetch path had two batch finds, one for the DelayedFetch.tryCompleteDiskless and seconds at DelayedFetch.onComplete.
Collect the batches at tryCompleteDiskless and reuse at onComplete. This reduces the database queries to batch coordinator.

The current code in main can have more batches at the onComplete as a new find batch query is run after the initial call at tryCompleteDiskless.

Comparisons to current main: 5875f03
On graphs the main is the left most run and right is from this PR.

Benchmark consumer fetch latency:
image

Find batches query time and rate:
image

Fetch rate:
image

@jjaakola-aiven jjaakola-aiven force-pushed the jjaakola-aiven-use-single-batch-find-on-fetch branch 4 times, most recently from 06062ae to 4dcecf1 Compare November 10, 2025 08:36
The fetch path had two batch finds, one for the DelayedFetch.tryCompleteDiskless
and seconds at DelayedFetch.onComplete.
Collect the batches at tryCompleteDiskless and reuse at onComplete.
This reduces the database queries to batch coordinator.
@jjaakola-aiven jjaakola-aiven force-pushed the jjaakola-aiven-use-single-batch-find-on-fetch branch from 4dcecf1 to 5945ae6 Compare November 10, 2025 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants