[Neo] Choosing between a property or a node
Max De Marzi Jr.
maxdemarzi at gmail.com
Fri Feb 19 03:48:44 CET 2010
What is the proper way to handle things that have only a few choices like:
status (active, inactive, purged)
race(10 choices + other)
As properties of a Person node, or as nodes that link to the Person node?
Pros or Cons of each method?
How about something with instances?
Student took a Class (twice) once with This teacher, once with Another
The first time he failed, the second time he got a B.
Create a StudentClass node with a property of Grade, linked to Teacher?
In order to answer:
Find all students who took the class.
Find all students who took the class when it was offered in the spring
semester (or taught by This Teacher).
Find all students who got a B
Find all students to got a B in this class?
Find all students to got a B in this class during the spring semester?
Find all students to got a B in this class when This Teacher taught it?
Is there a better way to do it? Rely on indexes? Pros/Cons?
More information about the User