Hi all, couple of basic questions. 1. What is the...
# spicedb
m
Hi all, couple of basic questions. 1. What is the recommended strategy on where to define relationships when defining an organization hierarchy? For example, if I have a User, Team and Organization is it recommended to link them like so?
Copy code
definition user {}
definition team {
  relation member: user
}
definition organization {
  relation team: team
}
Or in the reverse?
Copy code
definition user {
  relation parent: team
}
definition team {
  relation parent: organization
}
definition organization {}
Are there any perform differences impacted by the two strategies? 2. This is a bit of a loaded question but I'm curious how much overhead the addition of an individual caveat can introduce. Is one caveat trivial but the presence of multiple caveats while traversing a path could potentially be more problematic or is it not that clear cut?
4 Views