Nicolas
2012-07-21 09:12:46 UTC
Hi,
I didn't succeed in making it work with the 1.0.2-Snapshot. It didn't work
neither with the 1.1 Snapshot.
I tried another way using a server with a lot of RAM : 64GB memory.
I used the OGraphDatabase to design my graph.
The loading is made in two phases :
-Firstly, I load the vertices in the database and I keep in a HashMap
matching between the idTwitter and the vertex I loaded
-Secondly, I load the edges by using the HashMap to create the edges
between the vertices representing the idTwitter.
During the load of the vertices, the RAM usage grows fast and then stops at
28GB and nothing seems to happen. Is there a RAM limitation in the OrientDB
config ?
I didn't succeed in making it work with the 1.0.2-Snapshot. It didn't work
neither with the 1.1 Snapshot.
I tried another way using a server with a lot of RAM : 64GB memory.
I used the OGraphDatabase to design my graph.
The loading is made in two phases :
-Firstly, I load the vertices in the database and I keep in a HashMap
matching between the idTwitter and the vertex I loaded
-Secondly, I load the edges by using the HashMap to create the edges
between the vertices representing the idTwitter.
During the load of the vertices, the RAM usage grows fast and then stops at
28GB and nothing seems to happen. Is there a RAM limitation in the OrientDB
config ?
Hi,
the OrientBatchGraph is quite recent. Assure to use it against OrientDB
1.0.2-SNAPSHOT.
--the OrientBatchGraph is quite recent. Assure to use it against OrientDB
1.0.2-SNAPSHOT.
Hi Luca,
I tested the OrientBatchGraph but I don't succeed in running my
program without exception.
OrientBatchGraph g = new OrientBatchGraph("local:/home/**
nicolas/Recherche/OrientDb/**testdb");
BufferedReader buff = new BufferedReader(new FileReader("/home/nicolas/**
Recherche/file"));
String line="";
int left, right;
Vertex v1, v2;
String[] t;
while ((line = buff.readLine()) != null) {
t = line.split(" ");
left = Integer.parseInt(t[0]);
right = Integer.parseInt(t[1]);
v1 = g.getVertex(left);
v2=g.getVertex(right);
if (v1 == null) {
g.addVertex(left);
v1=g.getVertex(left);
}
if (v2 == null) {
g.addVertex(right);
v2=g.getVertex(right);
}
g.addEdge(left+"to"+right, v1, v2, "f");
}
g.shutdown();
buff.close();
The error is that when "g.addEdge(left+"to"+right, v1, v2, "f");" is
executed, v1 and v2 are null. Do i use "getVertex" correctly ?
Thanks again ;)
I tested the OrientBatchGraph but I don't succeed in running my
program without exception.
OrientBatchGraph g = new OrientBatchGraph("local:/home/**
nicolas/Recherche/OrientDb/**testdb");
BufferedReader buff = new BufferedReader(new FileReader("/home/nicolas/**
Recherche/file"));
String line="";
int left, right;
Vertex v1, v2;
String[] t;
while ((line = buff.readLine()) != null) {
t = line.split(" ");
left = Integer.parseInt(t[0]);
right = Integer.parseInt(t[1]);
v1 = g.getVertex(left);
v2=g.getVertex(right);
if (v1 == null) {
g.addVertex(left);
v1=g.getVertex(left);
}
if (v2 == null) {
g.addVertex(right);
v2=g.getVertex(right);
}
g.addEdge(left+"to"+right, v1, v2, "f");
}
g.shutdown();
buff.close();
The error is that when "g.addEdge(left+"to"+right, v1, v2, "f");" is
executed, v1 and v2 are null. Do i use "getVertex" correctly ?
Thanks again ;)
Hi everybody,
We have a text file which represents the edges of a graph.
id1 id2
id2 id3
id3 id1
That means that there is an oriented edge from the vertex id1 to
the vertex id2, from the vertex id2 to the vertex id3 and from the
vertex id3 to the vertex id1.
This file size is about 38GB, it's about 50millions vertices and
2B edges.
What is the best way to load and store this graph in GraphDB ?
I red that there may be a way by inserting a JSon file using
Gremlin console but I'm not sure that it can work.
Thanks a lot.
Nicolas
We have a text file which represents the edges of a graph.
id1 id2
id2 id3
id3 id1
That means that there is an oriented edge from the vertex id1 to
the vertex id2, from the vertex id2 to the vertex id3 and from the
vertex id3 to the vertex id1.
This file size is about 38GB, it's about 50millions vertices and
2B edges.
What is the best way to load and store this graph in GraphDB ?
I red that there may be a way by inserting a JSon file using
Gremlin console but I'm not sure that it can work.
Thanks a lot.
Nicolas