sqldb+graph/db: update FilterKnownChanIDs to use pagination

Remove a TODO by making use of the new sqldb.ExecutePagedQuery to fetch
channels in batches rather than one by one.
This commit is contained in:
Elle Mouton committed 2025-07-22 17:16:59 +02:00
1 parent f72c48b283
commit 88e9a21d63
4 files changed
+136 -16

No files matched your search

+5
View File
@@ -231,6 +231,11 @@ WHERE scid >= @start_scid
SELECT * FROM graph_channels
WHERE scid = $1 AND version = $2;
-- name: GetChannelsBySCIDs :many
SELECT * FROM graph_channels
WHERE version = @version
AND scid IN (sqlc.slice('scids')/*SLICE:scids*/);
-- name: GetChannelsByOutpoints :many
SELECT
sqlc.embed(c),