Skip to content

Drivine 0.0.85, whose session no longer holds a copy of every node it loads - #120

Merged
jasperblues merged 1 commit into
mainfrom
chore/drivine-0.0.85
Sep 28, 2026
Merged

jasperblues merged 1 commit into
mainfrom
chore/drivine-0.0.85

Conversation

@jasperblues

Copy link
Copy Markdown
Contributor

Drivine's session held a JSON copy of every node ever loaded, for the life of the app. 0.0.85 bounds it.

Before

  • Drivine 0.0.79. GraphObjectManager's session kept full snapshots, embeddings and text included, and never released them: 325 MB of a 518 MB live heap after ingesting 29 documents into an appliance.

Now

  • Drivine 0.0.85: snapshots keep shape, ids and 64-bit hashes of large values; at most 100,000 per manager (drivine.query.session-max-entries); thread-safe. Dirty tracking across transactions still works.

Behaviour change to be aware of: a saved relationship list is now authoritative even if the view was not loaded first. Relationships of that type to targets not in the list are removed.

Key change

-        <drivine.version>0.0.79</drivine.version>
+        <drivine.version>0.0.85</drivine.version>

Tests: 2,674 tests across all modules, 0 failures (Neo4j containers), run on JDK 21 against 0.0.85. No source changes were needed; nothing here calls the constructors or SessionManager methods whose signatures changed.

… loads

GraphObjectManager's dirty-tracking session kept a full JSON snapshot of every node ever loaded, for
the life of the application. In a running appliance it held 325 MB after 29 documents. 0.0.85 stores
shape, ids and hashes instead, bounds the session, and makes it thread-safe.

0.0.85 also makes a saved relationship list authoritative whether or not the view was loaded first.
@jasperblues
jasperblues merged commit 4f7a826 into main Sep 28, 2026
5 checks passed
@jimador
jimador deleted the chore/drivine-0.0.85 branch September 28, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants