Do I need a graph database?

Status
Not open for further replies.
I have a need to store a simple weighted digraph (cardinality: about 10,000,000 vertices) and perform quick, shallow traversals on it. Lesser requirements include correct recovery from system failure (I am planning on loading my entire working set into RAM and asynchronously writing changes to disk), catholicity of interface (we have a variety of environments that would need access) and simplicity of upkeep. Nobody dies (or ideally, even notices) if the weighting of the edges is wrong, so I'm not 100% concerned with robustness. Should I bother to investigate e.g. neo4j before rolling my own?
 

tonymac

Ars Tribunus Militum
2,178
I hadn't heard of neo4j before, but if it can provide the performance you need on that size data set, and provides the API interfaces you need, then it probably makes sense to check it out before reinventing the wheel. I'm not sure how the performance will be though, since it seems to run in a JVM.

I would think that your need for async writes is going to require some sort of database.

I have to ask though, why are you using a weighted digraph if the accuracy of the edge weights isn't important?
 
tonymac":ecf4hnv8 said:
I hadn't heard of neo4j before, but if it can provide the performance you need on that size data set, and provides the API interfaces you need, then it probably makes sense to check it out before reinventing the wheel. I'm not sure how the performance will be though, since it seems to run in a JVM.

I would think that your need for async writes is going to require some sort of database.

I have to ask though, why are you using a weighted digraph if the accuracy of the edge weights isn't important?
I should have been clearer; the weights need to be eventually accurate, but reading between updates won't cause any drama. I think I'll try neo4j tomorrow and see if their RESTish API is acceptable.
 
Status
Not open for further replies.