From 6fa7b772e60c835cdfe1f46e1b0aaed2d3c8df6c Mon Sep 17 00:00:00 2001 From: WildSoft Date: Thu, 12 Nov 2026 14:38:22 +0300 Subject: [PATCH] Update public source --- src/vendor_service.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/vendor_service.py b/src/vendor_service.py index 618a6d7..8708989 100644 --- a/src/vendor_service.py +++ b/src/vendor_service.py @@ -1323,7 +1323,7 @@ class VendorService: "unchanged": 0 } - rows = wifi_conn.execute( + rows_cursor = wifi_conn.execute( """ SELECT id, @@ -1332,7 +1332,18 @@ class VendorService: FROM access_points ORDER BY id """ - ).fetchall() + ) + + def iter_rows(): + + while True: + + batch = rows_cursor.fetchmany(1000) + + if not batch: + break + + yield from batch placeholders = ( None, @@ -1351,7 +1362,7 @@ class VendorService: total // 100 ) - for ap_id, bssid, current_vendor in rows: + for ap_id, bssid, current_vendor in iter_rows(): stats["checked"] += 1