-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
items propagation
and groups propagation
now have a step by step …
…transaction. For now in the worst case, the items propagation took ~6s. Since the process takes a lot of write locks, it makes other select queries for other services wait for this amount of time. This doesn't fully solve the waiting problem though. It just makes the wait faster because the transactions are now smaller. The code is a bit weird because we still have two cases where the group propagation have to be executed inside a bigger transaction: - The `CreateRelation` function, used in the `groupAddChild` and the accessTokenCreate and `refreshToken` (for the badges) services. - The `DeleteRelation` function, used only in the `groupRemoveChild` service. Once those cases are removed, the code can be simplified, and look more like the other propagations. Signed-off-by: Geoffrey Huck <[email protected]>
- Loading branch information
1 parent
f50ebb8
commit 073cb2a
Showing
1 changed file
with
70 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters