Preventing Janusgraph crash on timeout
Way to update static vertex
Dotnet best practice: converting Vertex properties to Model
What you maybe looking for is a secondary layer using an Object-Graph-Mapper (OGM) to handle this. For .NET, you could look to use something like Gremlinq for this: https://github.com/ExRam/ExRam.Gremlinq...
What is the use of adding type information to e.g ElementMap<type> in Gremlin.Net?
ElemementMap<TYPE>
that has any real value?
The return type of ElementMap<TYPE>
is a dictionary, and setting e.g ElementMap<IDictionary<string,string>>()
would return make dotnet try to fit all vertex properties against a IDictionary<string,string>
type - which only would work if all property values of the vertex are of type string
.
To frame it differently: is there any scenario in which I do not want to write ElemementMap<object>
or ElemementMap<dynamic>
?...How can I find property with a certain data type?
Verifying the count of ingested vertex and edges after bulk loading in Janusgraph.
Traversal is propagating to further edges?
g.V()
which traverses no edges at all and yet it still returns 6 edges. Note that there is a little toolbar button there with three dots connected by a line. Hover over it for a tooltip with a description but basically it will turn off that feature and in my example, the edg...How to load url data into Neptune?
io()
queries that need to access a public URL....Cannot access a stored value after fold
fold()
or groupBy()
you lose path history.
ReducingBarrierStep: All of the traversers prior to the step are processed by a reduce function and once all the previous traversers are processed, a single "reduced value" traverser is emitted to the next step. Note that the path history leading up to a reducing barrier step is destroyed given its many-to-one nature.Once you are reduced to a single traverser from many traversers, that path sort of loses meaning. Often folks work around this by rewriting their traversal to use
aggregate()
or some other global side-effect to hold the data somewhere other than path history. https://tinkerpop.apache.org/docs/current/reference/#a-note-on-barrier-steps...Are there alternative clients other than console?
Exporting current DB to JSON
Issues to execute gremlin queries with Java versions higher than 11
Caused by: javax.script.ScriptException: java.util.concurrent.ExecutionException: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 61
Caused by: javax.script.ScriptException: java.util.concurrent.ExecutionException: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 61
repeat with times(1) causing timeout
times(1)
.
Query 1 (runtime: 85 ms)
```...Agnostic client-side serialization of custom types
How to investigate latency
gremlin-console
with .profile()
step at the end, it finishes execution within 5–8 milliseconds, but when I perform the same request in a parametrized from an application, it takes up 25–40 milliseconds for the database to answer.
What takes this time, and how can I minimize it? I have a feeling that most of the time is taken by the backend storage layer (Apache Cassandra), and this time is not shown in the .profile()
. Am I correct?....repeat()
traversal with .map{myArray[it.loops]}
saved my day.store edges of a node in a sorted manner
Is there any way for me to store the edges of a specific node in a sorted manner?to my knowledge none of the common ones will allow that. i dont think most even preserve insertion order for edges.
Is there any Gremlin based database that implements indices perhaps?i assume you are still referring to edges here. Titan-like graphs such as JanusGraph, HugeGraph, etc. and DataStax Graph allow you to explicitly define indices on edges...
Coalesce steps causing concurrency issues
Big graph makes timeouts
Generated DSL related
g.person("one").knows("another")
it's good, but how to change the Traversal type when the given step is changed. e.g . another TwitterTraversalDSL.and user can do something like g.person("one").twitter().follows("another")
when follows
step is not a part of socialTraversalDSL ..How can I achieve this with java ~ looking f...Collect and filter data
.project
. It looks somehow like this:
complexQuery.project("a", "b", "c", ...).by(queryA).by(queryB).by(queryC).by(...)
What I want to do is to later filter the results by some predicates over a
, b
, c
, .... For example, maybe I want to select on those results, where b > 10
. And that's when the question arrive: I could add filtering steps after the project
, but is this any efficient? I'm just unsure about how gremlin evaluates it: does gremlin at first fully evaluates project
and then goes to the following steps, or is the computation of fields a
, b
, c
, ... delayed until they are being filtered on?...