From b298237a297cb70640c85c016b702a35ecafd9b9 Mon Sep 17 00:00:00 2001
From: Dan Goodliffe <dan@randomdan.homeip.net>
Date: Tue, 19 May 2026 00:36:50 +0100
Subject: Run the retry uninsertable process batched

Standard sized batch in a transaction, ordered by entity id.
Includes early exit if terminated.
---
 src/sql/selectUninsertableLines.sql | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src/sql/selectUninsertableLines.sql')

diff --git a/src/sql/selectUninsertableLines.sql b/src/sql/selectUninsertableLines.sql
index 048726b..5c07791 100644
--- a/src/sql/selectUninsertableLines.sql
+++ b/src/sql/selectUninsertableLines.sql
@@ -6,3 +6,6 @@ FROM
 WHERE
 	type = 'uninsertable_line'
 	AND detail IS NULL
+ORDER BY
+	id
+LIMIT ?
-- 
cgit v1.3

