From 44c24e362c4d7c240242eb3ba13c1409c6165912 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Wed, 23 Jul 2025 17:37:25 +0200 Subject: [PATCH] Handle device syncs for many devices more quickly --- crates/tasks/src/matrix.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/tasks/src/matrix.rs b/crates/tasks/src/matrix.rs index 4855a4bf1..d5d6e6e65 100644 --- a/crates/tasks/src/matrix.rs +++ b/crates/tasks/src/matrix.rs @@ -192,7 +192,7 @@ impl RunnableJob for SyncDevicesJob { let mut devices = HashSet::new(); // Cycle through all the compat sessions of the user, and grab the devices - let mut cursor = Pagination::first(100); + let mut cursor = Pagination::first(5000); loop { let page = repo .compat_session() @@ -216,7 +216,7 @@ impl RunnableJob for SyncDevicesJob { } // Cycle though all the oauth2 sessions of the user, and grab the devices - let mut cursor = Pagination::first(100); + let mut cursor = Pagination::first(5000); loop { let page = repo .oauth2_session()