Performance question: "x is_type boolean" or "x <type> value"

Hey @lazharichir

That’s a good question and we have been recommending the first method i.e. defining a string type edge. The advantage is that you can just use the same predicate in your queries while checking for type instead of checking for a different predicate each time.

Both should be equally performant as they would generate equal sized index posting lists.