GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@tae898 tae898 commented Oct 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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:

  1. 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.
  2. 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.

All reactions
tae898 and others added 2 commits October 1, 2026 17:49
@tae898 @claude
bindings docs: whole-type aggregates run on every core in SQL and on …
67a960d
…one in Cypher (26.10.1, upstream ArcadeData#8797) (#40)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWcDr7TwvcfMsQkeYQVHZr
@tae898 @claude
bindings docs: distinct values through GROUP BY, not SELECT DISTINCT …
9bb8048
…(26.10.1, upstream ArcadeData#8799) (#40)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWcDr7TwvcfMsQkeYQVHZr
@tae898 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
@tae898 @claude
examples: 05 reads its user ids with GROUP BY, not SELECT DISTINCT (u…
e02fd63
…pstream ArcadeData#8799) (#40)

All three creation modes (sql, java, 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.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWcDr7TwvcfMsQkeYQVHZr
@tae898
tae898 merged commit b45ed7f into main Oct 1, 2026
48 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@tae898
tae898 deleted the docs/cypher-aggregates-one-core branch October 1, 2026 09:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

bindings docs: whole-type aggregates and distinct values run on every core only through SQL GROUP BY (26.10.1, upstream #8797, #8799)

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@tae898
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.