You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Graph Analytical View: a lightweight edge created or removed after the build never reaches the view (SYNCHRONOUS overlay, and staleness of OFF/ASYNC) #9572
A Graph Analytical View in UPDATE MODE SYNCHRONOUS does not see a lightweight edge created after the view was built: the overlay never receives it, so every query served by the view (count push-downs and the row pipeline alike) answers as if the edge did not exist. Dropping the view gives the right answer.
CREATE VERTEX TYPE P; CREATE EDGE TYPE K;
-- a -K-> b (record edge)
CREATE GRAPH ANALYTICAL VIEW v1 VERTEX TYPES (P) EDGE TYPES (K) UPDATE MODE SYNCHRONOUS
-- in a new transaction, with c a new P: a.newLightEdge("K", c); a.newEdge("K", c)
MATCH (a:P)-[:K]->(b:P) RETURN count(*) -- 2, expected 3
MATCH (a:P)-[:K]->(b:P) WITH * RETURN count(*) -- 2, expected 3
-- then a.newLightEdge("K", a) in another transaction
MATCH (a:P)-[:K]->(b:P) RETURN count(*) -- 2, expected 4
DROP GRAPH ANALYTICAL VIEW v1
MATCH (a:P)-[:K]->(b:P) RETURN count(*) -- 4
Cause: DeltaCollector learns about changes through the record listeners (onAfterCreate / onAfterDelete), and a lightweight edge has no record, so neither its creation nor its removal is ever reported. The same listener decides whether an OFF or ASYNCHRONOUS view goes stale, so a transaction that only touches light edges presumably leaves those views fresh too (to be verified).
The fix has to hook the light-edge writes themselves (the edge-list append / removal in GraphEngine), for creation and deletion, and cover the staleness detection of the other two modes.
A Graph Analytical View missed two kinds of edge writes, so it kept answering with the old graph until its next full rebuild:
Lightweight edges: creating one did not reach the view (deleting one already did). The view now picks up both, and counts duplicate lightweight edges between the same two vertices correctly.
GraphBatch bulk loads: they bypass the per-record events views listen to, so none of the loaded edges reached the view. Now, when a batch closes, a SYNCHRONOUS view rebuilds right away, and an ASYNCHRONOUS one schedules a rebuild as for any other commit.
No change needed on your side.
❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
The lightweight-edge fix landed in #9610. #9684 (26.11.1) also fixes two related cases where a SYNCHRONOUS Graph Analytical View kept an edge the graph no longer had:
moving an edge (UPDATE ... SET @in = ... / @out) left the old edge in the view. The move now reports the old edge as deleted, so an AFTER DELETE trigger on the edge type also fires on a move;
deleting a vertex that was added after the view was built left its edges counted on its neighbours.
❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
Activity
review(#9572): no rebuild of a shut-down view; pin listener removal, …
review(#9572): a failing bulk-load listener costs only its own view t…
review(#9572): document why a light-edge listener may fail the creati…
review(#9572): a view never serves a raced lightweight pair one dupli…
review(#9572): declare the lightweight change counter at the top of T…
Merge pull request #9610 from ArcadeData/worktree-arcadedb-7938-9572-…
lvca commentedon Oct 10, 2026
Fixed by #9610 (release 26.11.1).
A Graph Analytical View missed two kinds of edge writes, so it kept answering with the old graph until its next full rebuild:
GraphBatchbulk loads: they bypass the per-record events views listen to, so none of the loaded edges reached the view. Now, when a batch closes, aSYNCHRONOUSview rebuilds right away, and anASYNCHRONOUSone schedules a rebuild as for any other commit.No change needed on your side.
❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
fix: two ways a Graph Analytical View overlay kept an edge the graph …
lvca commentedon Oct 10, 2026
The lightweight-edge fix landed in #9610. #9684 (26.11.1) also fixes two related cases where a
SYNCHRONOUSGraph Analytical View kept an edge the graph no longer had:UPDATE ... SET @in = .../@out) left the old edge in the view. The move now reports the old edge as deleted, so anAFTER DELETEtrigger on the edge type also fires on a move;❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
fix(ArcadeData#9572): lightweight edges and GraphBatch loads reach gr…
fix(#9572): lightweight edges and GraphBatch loads reach graph analyt…
review(#9572): no rebuild of a shut-down view; pin listener removal, …
review(#9572): a failing bulk-load listener costs only its own view t…
review(#9572): document why a light-edge listener may fail the creati…
review(#9572): a view never serves a raced lightweight pair one dupli…
review(#9572): declare the lightweight change counter at the top of T…
fix: two ways a Graph Analytical View overlay kept an edge the graph …