Skip to content

docs(#431): many small graph batches pay a fixed cost; say which arguments lower it - #432

Merged
tae898 merged 1 commit into
ArcadeData:mainfrom
shaunpatterson:docs/graph-batch-fixed-cost
Nov 22, 2026
Merged

tae898 merged 1 commit into
ArcadeData:mainfrom
shaunpatterson:docs/graph-batch-fixed-cost

Conversation

@shaunpatterson

Copy link
Copy Markdown
Contributor

What does this PR do?

Documents the fixed cost of a graph_batch() that #431 measured: with the default arguments a batch of one edge takes about 2 ms on both packages and allocates about 41 MiB on arcadedb-jvm; with batch_size=100, chunk_cache_capacity=1000 it takes about 0.2 ms and allocates 0.6 MiB.

  • how-to/bulk-loads.adoc: a new section "Many small graph batches" with the measurement, the two arguments, and when to leave them at their defaults.
  • Database.graph_batch() docstring: the batch_size and chunk_cache_capacity entries say that the engine sizes its buffers and caches for them when the batch is created.

No code changes. Whether the engine should size these structures lazily is a question for ArcadeData/arcadedb and is left to #431.

Related issues

Closes #431

Performance changes

None: documentation only. The numbers in the page come from the scripts in #431.

Docs

The two places above. The Antora component builds without warnings (npx --yes -p @antora/[email protected] -p @antora/[email protected] antora docs/antora-playbook.yml).

Checklist

  • A regression test fails on the old code and passes on the new (documentation only; there is no behavior to test)
  • The test suite that the change can affect passes (no code path changed; the docstring is the only edit under src/)
  • uvx pre-commit run --files <changed files> passes

@tae898
tae898 merged commit c953e25 into ArcadeData:main Nov 22, 2026
45 checks passed
@github-actions github-actions Bot added this to the 26.12.1 milestone Nov 22, 2026
@tae898 tae898 added the documentation Improvements or additions to documentation label Nov 22, 2026
@tae898

tae898 commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Thank you, merged for 26.12.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

graph_batch(): a batch of one edge takes about 2 ms and allocates about 41 MiB with the default arguments

2 participants