From 75f695148218be899a9f0c543e51ecb70333916c Mon Sep 17 00:00:00 2001
From: Benjamin Ledel <benjamin.ledel@digitallearning.gmbh>
Date: Mon, 10 Feb 2025 12:25:09 +0100
Subject: [PATCH] Update file views.py

---
 src/providers/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/providers/views.py b/src/providers/views.py
index b35119d..ae6554c 100644
--- a/src/providers/views.py
+++ b/src/providers/views.py
@@ -508,7 +508,7 @@ class GetProviderData(APIView):
             print(f"Query constructed in {time.time() - query_start_time:.6f} seconds")
 
             execution_start = time.time()
-            cursor = collection.find(query).limit(page_size)
+            cursor = collection.find(query).limit(page_size).batch_size(page_size)
             print(f"Query executed in {time.time() - execution_start:.6f} seconds")
             data_time = time.time()
             data = {
-- 
GitLab