Multiple Graphs in Gremlin Server?

How do I manage multiple graphs? Is there an option where I can select which graph to use for query or will the query check each graph present in the server?
2 Replies
spmallette
spmallette15mo ago
This question hasn't been asked in a long time. You can host multiple Graph instances and GraphTraversalSource instances in Gremlin Server. You do this in the Gremlin Server configuration by way of the names you provide for your hosted Graph instances in the YAML file in the graphs configuration key and in the names you give to the bindings in globals in the Gremlin Server initialization script. you should read the "Starting Gremlin Server" section to get more information on how this is all rigged up: https://tinkerpop.apache.org/docs/current/reference/#starting-gremlin-server Once you have the Graph and GraphTraversalSource instances setup you can then reference them directly by name in your Gremlin when sending scripts or more commonly use "aliases" to rebind the names on the server to "g". You would need to consult the documentation for each programming language to determine how aliases work for that language. For java and bytecode requests you would do something like: GraphTraversalSource g = traversal().withRemote(DriverRemoteConnection.using("localhost",8182,"gmodern")); where "gmodern" refers to the name of a GraphTraversalSource configured on the server.
adityasinha2804
adityasinha280415mo ago
Thank you very much! Just changed example-groovy and gremlin server - graphs key Thank you!
Want results from more Discord servers?
Add your server
More Posts
Has anyone else encountered "NoSuchElementException" when calling getLeafTrees() on a tree objectDid a little bit of debugging and it seems that the issue has to do with a cast to Tree before calliThe query gets slower as the number of vertices that already exist in JanusGraph gets bigger and bigWhen i start JanusGraph and perform any query like : - g.V().has(properties).limit(10).toList() - g.Is there a limitation on Neptune HTTP API endpoint compatibility when using a proxy and IAM Auth?Hi, Got a weird one today. I'm working on bringing full compatibility for the use of proxies frontiPreventing Janusgraph crash on timeoutAccording to this: https://stackoverflow.com/questions/61985018/janusgraph-image-stop-responding-aftWay to update static vertexhttps://docs.janusgraph.org/schema/advschema/#static-vertices I read document about TTL vertex. And Dotnet best practice: converting Vertex properties to ModelA very common task in Dotnet is to convert a stored entity into a Model class. How is this best accoWhat is the use of adding type information to e.g ElementMap<type> in Gremlin.Net?Consider the query and output in the attached image: What TYPE could be placed inside the `ElemementHow can I find property with a certain data type?I have a situation where the same property has different type under the same label, kind of like theVerifying the count of ingested vertex and edges after bulk loading in Janusgraph.I have bulk loaded around 600k Vertices and 800k Edges into my janusgraph cluster backed with bigtabTraversal is propagating to further edges?I have node label A and B with edge between them ("Has") Also i have node B with edge to another nod