Commit 2f46ba59 by imwangxiaozhou Committed by 胡悦

perf(企业微信服务): 调整默认分页大小为50

修改企业微信同步服务与客户群编排服务的默认分页参数,从100调整为50以优化性能表现
1 parent 92daf560
...@@ -186,7 +186,7 @@ class WeComCustomerGroupOrchestrationService: ...@@ -186,7 +186,7 @@ class WeComCustomerGroupOrchestrationService:
sync_service: WeComSyncService, sync_service: WeComSyncService,
batch_dispatcher: Any | None = None, batch_dispatcher: Any | None = None,
webhook_notifier: WeComWebhookNotifier | None = None, webhook_notifier: WeComWebhookNotifier | None = None,
page_size: int = 100, page_size: int = 50,
) -> None: ) -> None:
self.db = db self.db = db
self.client = client self.client = client
......
...@@ -131,7 +131,7 @@ class WeComSyncService: ...@@ -131,7 +131,7 @@ class WeComSyncService:
db: Session, db: Session,
client: WeComSyncClient, client: WeComSyncClient,
dispatcher: WeComMessageDispatcher | None = None, dispatcher: WeComMessageDispatcher | None = None,
page_size: int = 100, page_size: int = 50,
) -> None: ) -> None:
self.db = db self.db = db
self.client = client self.client = client
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!