Scale subscription update processing

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2026-08-31 10:07:17 +08:00
parent 80ac887255
commit a2deb73839
17 changed files with 874 additions and 27 deletions
+10
View File
@@ -123,6 +123,16 @@ class Storage:
"""Persist one subscription group through the shared repository."""
Storage._UserSubsStorage().upsertGroup(group)
@staticmethod
def upsertSubscriptionGroups(groups):
"""Mutate a validated subscription-group batch in one commit."""
Storage._UserSubsStorage().upsertGroups(groups)
@staticmethod
def persistSubscriptionGroups():
"""Serialize the current subscription repository once."""
Storage._UserSubsStorage().sync()
@staticmethod
def removeSubscriptionGroup(unique: str) -> SubscriptionGroup | None:
"""Remove one subscription group through the shared repository."""