Changing graphname at runtime

26 views
Skip to first unread message

Diglio Simoni

unread,
Feb 20, 2021, 10:05:43 AM2/20/21
to Gremlin-users
Hello,

I have a situation where I have a consumer API that talks to JanusGraph. It's configured to connect to a a ConfiguredGraphFactory graph with graphname "Graph_A". I want to update Graph_A in *its totality*, which implies dropping it and recreating it from scratch. The problem is that such a process takes a long time, and I don't want the system to be down while Graph_A is being rebuilt. So I have another ConfiguredGraphFactory graph with graphname Graph_B. I take whatever time is required to create Graph_B, and when it's done, I need to stop the system, change the configuration of the API to now connect to Graph_B and restart the system.

But I don't want to do that.

Instead what I'd like to do is: when Graph_B is ready, I would ConfiguredGraphFactory.drop('Graph_A') and *rename* Graph_B to Graph_A.

Is that possible? If not, does anybody have another solution? This is akin to what one does in computer graphics and double buffering....

Stephen Mallette

unread,
Feb 22, 2021, 5:46:24 AM2/22/21
to gremli...@googlegroups.com
As this question is specific to JanusGraph you might have better luck asking this question on their lists:


--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/8d962a3a-8bd4-47de-92e4-fbaca75bdb9cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages