Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions application/database/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,10 @@ def __init__(self) -> None:
self.session = sqla.session

def with_graph(self) -> "Node_collection":
if self.graph is not None:
logger.debug("CRE graph already loaded, skipping reload")
return self

logger.info("Loading CRE graph in memory, memory-heavy operation!")
self.graph = inmemory_graph.CRE_Graph()
graph_singleton = inmemory_graph.Singleton_Graph_Storage.instance()
Expand Down