graph/db+sqldb: use batch validation for closed SCID migration

As was done in the previous commits for nodes & channels, we update the
migrateClosedSCIDIndex function here so that it validates migrated
entries in batches rather than one-by-one.
This commit is contained in:
Elle Mouton
2025-08-13 13:56:50 +02:00
parent 8554f17b3f
commit a490e03479
5 changed files with 107 additions and 17 deletions

View File

@@ -984,3 +984,8 @@ SELECT EXISTS (
FROM graph_closed_scids
WHERE scid = $1
);
-- name: GetClosedChannelsSCIDs :many
SELECT scid
FROM graph_closed_scids
WHERE scid IN (sqlc.slice('scids')/*SLICE:scids*/);