Liam Costello (Flowers-Software)
06/04/2025, 10:19 AMpermission
due to them being fairly obvious but please let me know if you require anything further:
definition user {
}
definition list {
relation children: section
}
definition section {
}
// There can be 100,000s objects per list
definition object {
relation parent: list
}
// There are 10-20 sections per object
definition object_section {
relation parent: section
relation viewer: user
}
We tried use prefixed IDs for the object_sections e.g. LIST_ID_... and then doing a read relationships with a prefix and limit of 1 to determine if they have access. However, there isn't a suitable index in place to take care of this.
There's a good chance we've entirely misunderstood something and this is a relatively easy lookup. We've tried a few different combinations but are struggling to figure out a way to do this efficiently. Any help would be greatly appreciated!