Skip to content

Best way to deduplicate relationship tuples? #675

Answered by zepatrik
huttotw asked this question in Q&A
Discussion options

You must be logged in to vote

From a fist glance

we are looking to handle the case where (for whatever reason) permissions get out of sync with our domain model

try to update the index on write to the entity

are the key points here. I would try to run both systems in parallel for some time and use the old system for a "backup" of stuff not yet transferred.
One question of course is how to handle permission revocation in such a scenario, because you will have to ensure that that always happens in both systems, or none, to stay consistent.
Permission granting is a bit more forgiving there, because you can just or the two responses you get.

Alternatively maybe there is a way to also transfer all permissions for a use…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vinckr
Comment options

@huttotw
Comment options

@vinckr
Comment options

Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants