News for hackers. Stuff that matters.
Re:Modeling Data in MongoDB vs. ArangoDB by Lerato on Friday November 07, 2014 @11:28AM (#8573270)
Is there a rule of thumb, in which situation you would model your connection as foreign key and in which situation you would model it as graph? Or do you always use graphs?
Re:Modeling Data in MongoDB vs. ArangoDB by rodeoclown on Friday November 07, 2014 @01:05PM (#8573764)
Model your data first using foreign keys, then if you have performance issues with specific queries consider ways of optimizing those queries.

Materializing that data in a graph may be one of those optimization candidates.

Re:Modeling Data in MongoDB vs. ArangoDB by Steve83 on Friday November 07, 2014 @12:23PM (#8573558)
I've found an interesting slide show: http://de.slideshare.net/arangodb/domain-driven-design-frosc... explaining how to model your data based on techniques from domain driven design.

You have identify your entities and value objects.

Re:Modeling Data in MongoDB vs. ArangoDB by neunhoef on Friday November 07, 2014 @12:14PM (#8573531)
Another good rule I tend to use is that if your queries will involve variable lengths of paths in your graph, it was probably a good idea to model using a graph. This is because another model would almost certainly need multiple joins, which can kill performance quite quickly.
Re:Modeling Data in MongoDB vs. ArangoDB by Marc64 on Friday November 07, 2014 @11:44AM (#8573366)
I think if you are connecting the same type of objects (i.e. users) you should use graphs. If you have a 1:n relation between different types, you could as well use foreign keys. For n:m you again need graphs.
Re:Modeling Data in MongoDB vs. ArangoDB by Philippos91 on Friday November 07, 2014 @12:08PM (#8573502)
Having a 1:n relation which you might want to annotated with, for instance, "type of relation" it is also feasible to use the graph model, as edges can carry attributes.