Titan: Refreshing the graph after adding new vertex or edges

titan

Solution

Consider issuing a `g.rollback()` at the start of a new HTTP request to ensure you get a fresh view. That's how Rexster does things currently.

Problem

I am using Titan in Spring Web app. When i add new edge, or delete a vertex its actually deleted but doesn't reflect in my web page. My query still gets the old edges or vertices. for that to happen i have to restart my application. I am doing `g.commit()` after each new addition or deletion.

Original source