GeezerVison is showing github.com — bindings docs: whole-type aggregates and distinct values, SQL GROUP BY in the parallel workers (26.10.1, upstream #8797, #8799) by tae898 · Pull Request #41 · humemai/arcadedb-embedded-python
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Conversation
tae898
commented
Oct 1, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Closes #40.
The queries guide gains two paragraphs under 'Scans run in parallel only outside a transaction', both measured on upstream main 3d5e1a5, 2,000,000 records, 12 cores, Temurin 25 and 21, one bucket and eight, every answer equal across forms:
- Whole-type aggregates: in 26.10.1 a SQL aggregate over a type scan runs in the parallel workers, while an openCypher aggregate over a label runs on one thread (an unfiltered label scan is sequential; with a WHERE the scan is parallel and the aggregation is not). sum 127-130 ms in SQL against 680-752 ms in Cypher; group-by 226-239 ms against 973-1,146 ms. Advice: write whole-type aggregates in SQL until openCypher: an aggregate over a label runs on one core, 4-8x behind the same SQL aggregate since #8524 (sum over 2M vertices: 680 ms against 127 ms) ArcadeData/arcadedb#8797 changes it.
- Distinct values: SQL SELECT DISTINCT projects and dedups on one thread, while GROUP BY over the same columns runs in the workers and returns the same rows. 1,185-1,481 ms against 92-111 ms; with a WHERE 695-859 ms against 98-103 ms. Advice: GROUP BY (SQL SELECT DISTINCT projects and dedups on the consumer thread: 13x slower than GROUP BY over the same column (1,185 ms against 92 ms at 2M records) ArcadeData/arcadedb#8799).
Example 05 (and its docs page) now reads its user ids with SELECT userId FROM Rating GROUP BY userId ORDER BY userId in place of a SELECT DISTINCT subquery; its docstring note about the older direct DISTINCT form is rewritten. All three creation modes (--method sql, --method java, --method java --no-async) re-run on the 26.10.1.dev0 wheel against movielens-small with both databases open: 610 users and every baseline match, as before the change.
Repros kept in the private notes (agg-parallel).
🤖 Generated with Claude Code
https://claude.ai/code/session_01WWcDr7TwvcfMsQkeYQVHZr
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
tae898
changed the title
bindings docs: whole-type aggregates run on every core in SQL and on one in Cypher (26.10.1, upstream #8797)
bindings docs: whole-type aggregates and distinct values, SQL GROUP BY in the parallel workers (26.10.1, upstream #8797, #8799)
Oct 1, 2026
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|