I'm curious what the best way to model enumerators are in Neo4j. Should they be nodes, relationships, properties, etc.?
enum Activity {
BASKETBALL, // ID: 1
HOCKEY // ID: 2
}
For example, in SQL I could just make an enum table and have foreign key relationships (ID: 1, 2
) pointing to that lookup table. Should I just have a node for each entry (BASKETBALL, HOCKEY
) that would have been in that SQL enum table, or should it be in a label or property? Are there performance impacts by having, say, thousands or millions of nodes thus pointing to that one enum node, or is it more or less not really a concern?
I understand there might be cases for each, and if so, please explain when to use which.