Just wondering what would be the best practice to typify the nodes in my dgraph database. Nodes can either be ‘topics’ or ‘phrases’ (might have more in the future.) There will be over 100 millions of nodes in production.
What would be the best approach, using an indexed predicate that defines takes a string value holding the node type:
_:0 <xid> "abc" . _:0 <type> "topic" . _:1 <xid> "xyz" . _:1 <type> "phrase" .
Or, using an indexed boolean predicate labeled for each type:
_:0 <xid> "abc" . _:0 <is_topic> true . _:1 <xid> "xyz" . _:1 <is_term> true .
What is the most suitable, performant and scalable solution for those who do have an idea?