From d536f4935b08d749e041ee917ebf0cd71811ab1a Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 16 Jul 2026 12:44:48 +0200 Subject: [PATCH] WIP arrow api --- backend/src/app/graph/debug.clj | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/src/app/graph/debug.clj b/backend/src/app/graph/debug.clj index d6421c9ea9..30b4bc5f13 100644 --- a/backend/src/app/graph/debug.clj +++ b/backend/src/app/graph/debug.clj @@ -136,7 +136,11 @@ (swap! sessions dissoc (session-key profile-id))) (defn load-session! - "Ingest `file-id` into a new in-memory Ladybug database for `profile-id`." + "Ingest `file-id` into a new in-memory Ladybug database for `profile-id`. + + Uses Arrow by default (`ingest-on-connection!`). After building the sync + index, drops `:nodes`/`:edges` from stored meta so the session does not + retain the full projection in heap." [cfg profile-id file-id] (unload-session! profile-id) (let [^Database db (Database.) @@ -150,6 +154,7 @@ :skip-stats? true :skip-validation? true) index (graph.sync/build-index file-id (:revn meta) (:projection meta)) + meta (update meta :projection select-keys [:stats]) session (-> {:db db :conn conn