HailDevil
Explore posts from serversJJanusGraph
•Created by HailDevil on 10/29/2024 in #questions
Edge cardinality SIMPLE documentation not clear
I am using edge cardinality as SIMPLE in my graph, and according to documentation:
SIMPLE: Allows at most one edge of such label between any pair of vertices. In other words, the graph is a simple graph with respect to the label. Ensures that edges are unique for a given label and pairs of vertices.
My question is, is direction considered here? Means can I have an edge A->B and B->A?
Or it ends up with SchemaViolationException3 replies
JJanusGraph
•Created by HailDevil on 10/18/2024 in #questions
Decoding graphindex values for debugging purpose
I need a help here to be able to decode graphindex table values,
I see that it has three columns "key, column1, value", where PRIMARY KEY(key, column1)
why column1 is kept as part of the key? Is there any documentation to understand this design?
Also, i am able to to decode the row values with some dirty hex to text decoding, but I see there are some paddings added to the hex values, can you please help me how can i decode the values exactly?
For instance, there is a value 0x015b704a00e0 stored in "value" column of graphindex table,
Using straight hex decoding i get : 1492237549792, but I do not see any vertex in my graph with this vertex id, so i assume probably there are some extra bits added to the "value" column.
It will be a really help if someone can explain me this. Thanks a lot. Counting on you guys 😦
8 replies
JJanusGraph
•Created by HailDevil on 8/13/2024 in #questions
Janusgraph Servers start throwing Exceptions when load increases
2 replies
JJanusGraph
•Created by HailDevil on 5/29/2024 in #questions
Java 17 support
When can we expect Janusgraph to support Java 17? 🙂
12 replies
JJanusGraph
•Created by HailDevil on 11/6/2023 in #questions
OLAP job failing with NullPointerException error
4 replies
JJanusGraph
•Created by HailDevil on 10/19/2023 in #questions
drop() slow performance
I have to drop thousands of vertex ids from the graph, and .drop().iterate() takes like 1 minute for each vertex.
Seems like it is gonna take ages for my task to complete.
Is there any other quicker way to achieve this? like a bulk drop operation?
4 replies
JJanusGraph
•Created by HailDevil on 9/12/2023 in #questions
Different vertex Ids with exactly same properties
I am using Janusgraph 1.0.0-rc2 with Cassandra as a backend.
I recently encountered an issue where I saw two different vertices with different vertex ID but have exactly same properties,
Even when I have indexed the property as UNIQUE.
Is this a known issue of rc2 version?
8 replies
JJanusGraph
•Created by HailDevil on 8/19/2023 in #questions
StaleIndexRecordUtil.forceRemoveVertexFromGraphIndex not working
The job is getting successful, but I can still see the vertices in the graph.
It is weird that even If I pass a non existent vertex ID, the job does not fail.
any idea why such behavior? or am I missing something?
16 replies
JJanusGraph
•Created by HailDevil on 8/18/2023 in #questions
Check status of StandardScannerExecutor job
3 replies
ATApache TinkerPop
•Created by HailDevil on 7/13/2023 in #questions
Gremlin query to give response for 1 and 2 hops at same time
I have a graph setup with certain type of vertices like:
inputFiles, outputFiles, convertors
convertors basically take some input files, process them and produce output files.
For example:
convertor-abc -----output----> outputFile-1
|
|
input
|
|
inputFile-1
this inputFile-1 can be an input to more than one convertors., an input file can also be an output file for another convertor vice versa for output file.
I need to write a gremlin query which takes an input file id, looks for all the convertors for which this input file is given as input, and also all the input output files given to these convertors and gives in response;
For example:
{
"file": "inputFile-id",
"convertors":
[
{
"convertor": "convertor-1",
"inputs" : [
{
"file": "inputFile-id-1"
},
{
"file": "inputFile-id-2"
}
],
"outputs" : [
{
"file": "outputFile-id-1"
},
{
"file": "outputFile-id-2"
}
]
},
{
"convertor": "convertor-2",
"inputs" : [
{
"file": "inputFile-id-3"
},
{
"file": "inputFile-id-4"
}
],
"outputs" : [
{
"file": "outputFile-id-3"
},
{
"file": "outputFile-id-4"
}
]
}
]
}
How can I achieve this in single gremlin query, also it is fesable to have a single query to achieve this? or its better to break the query into two and first we fetch all the convertors and then look for its input output files?9 replies
JJanusGraph
•Created by HailDevil on 6/21/2023 in #questions
Should not allow creating vertex with only one of the composite index
I have created unique composite index using : .addKey(key1).addKey(key2).unique().buildCompositeIndex()
I want to keep the combination of key1 and key2 unique. Please let me know if I can achieve that with the above statement.
Also i found that janusgraph is allowing me to create vertices using only one of the key, for example i can create vertices with key1 only, why it is allowing me to do so? shouldnt it fail since key2 is not given?
1 replies