Skip to content

docs(readme): document server-side batching, GA since Weaviate v1.36 - #633

Open
dudanogueira wants to merge 4 commits into
weaviate:mainfrom
dudanogueira:docs/server-side-batching-ga
Open

dudanogueira wants to merge 4 commits into
weaviate:mainfrom
dudanogueira:docs/server-side-batching-ga

Conversation

@dudanogueira

@dudanogueira dudanogueira commented Nov 9, 2026 •

Copy link
Copy Markdown

What

The README still said dynamic batching would come once server-side batching is GA. It has been GA since Weaviate v1.36, and client6 supports it via collection.batch.start().

Changes

  • Replace the outdated note with a Server-side batching section: a try (BatchContext ...) example and what close() waits for.
  • Show how to read per-object results (TaskHandle.done(), numberOfErrors()).
  • Document batchSize, maxReconnectRetries, reconnect behaviour and withTenant(...); point to insertMany for servers before v1.36.
  • Show a retryPolicy recipe for the auto-schema race in Concurrent batches into an auto-schema-created collection lose objects #635 (a server-side issue).

Breaking changes

None (README only).

The README still said dynamic batching would come once server-side
batching became GA (est. v1.34). It became GA in v1.36, and client6
already supports it through `collection.batch.start()`. The README now
shows how to use it, how to read per-object results from TaskHandle,
the builder settings, the reconnect behaviour, and tenants.

@orca-security-eu orca-security-eu Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The README examples use a non-compiling WeaviateObject.of call and fail to clarify that close() waits for final per-object results and stream termination, not just queue acknowledgements.

2 open issues
What changed in this PR

Updates the Java client README to document server-side batching, generally available since Weaviate v1.36, replacing the outdated availability note.

Changes:

  • Adds batching examples covering lifecycle and per-object results.
  • Documents configuration, reconnection, tenant selection, and the fallback for older servers.
  • Provides retry guidance and a collection-creation workaround for the auto-schema race described in #635.
File Description
README.md Replaces the outdated batching note with usage examples, configuration guidance, and auto-schema race workarounds.

Review effort: Balanced

Comment thread README.md Resolved
Comment thread README.md Resolved
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