Titan: Updating the graph after adding new vertices or edges

I am using Titan in a Spring web application. When I add a new edge or delete a vertex, it is actually deleted, but not reflected on my web page. My query still gets old edges or vertices.

for this to happen, I have to restart my application.

I do g.commit()after each new addition or removal.

+3
source share
2 answers

Consider releasing g.rollback()at the beginning of a new HTTP request to make sure you get a new view. The way Rexster is doing something now.

+7
source

To add to Stephen the answer:

, , Titan . , , , , g.commit(), , ( ) , .

, , "" .

+7

All Articles