Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

Example 21: query the graph analytical view once after a reopen, then wait for its counts - #469

Merged
tae898 merged 1 commit into
mainfrom
fix/ex21-gav-reopen-wait
Oct 22, 2026
Merged

tae898 merged 1 commit into
mainfrom
fix/ex21-gav-reopen-wait

Conversation

@tae898

@tae898 tae898 commented Oct 22, 2026

Copy link
Copy Markdown

Fixes #457

After a reopen, a graph analytical view restored from its persisted CSR is lazy: schema:graphAnalyticalViews reports READY with nodeCount 0 and edgeCount 0 until the first query that uses the view (ArcadeData#10575). Example 21 polled the row until READY and then required the full counts, so on current engines it failed intermittently (2 of 3 runs on main 564fcc9 at 67,500 nodes). Results through the view were always correct: 2-hop counts, inbound counts, neighbour samples and algo.wcc matched the record-level queries in every run.

The example now runs one query through the view after the reopen and then polls with a new wait_for_gav_counts helper until the row is READY with the expected counts. The example page (docs/examples/21_graph_analytical_view_sql.md) and the caveat in docs/guide/graph-analytics.md describe the lazy row.

Runs of the fixed example, each ending in "Example 21 completed.": main 564fcc9 at 67,500 nodes x3, 26.10.2 at 67,500 nodes x2, main at the default size x1. Example 21 is not part of test_docs_examples, so no test changed.

🤖 Generated with Claude Code

…er a reopen (457)

A view restored on open is lazy: schema:graphAnalyticalViews answers READY with nodeCount 0 and edgeCount 0 until the first query that uses the view. The example now queries once, then polls for the expected counts. Docs page and guide caveat updated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@tae898
tae898 merged commit 518c4af into main Oct 22, 2026
42 of 44 checks passed
@tae898
tae898 deleted the fix/ex21-gav-reopen-wait branch October 22, 2026 07:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example 21 fails after reopen: GAV row reads READY with zero counts until the first query

1 participant