lnd/sqldb/sqlc
Olaoluwa Osuntokun 31ab2ae4b6
sqldb: implement iterator support for ChanUpdatesInHorizon
In this commit, we update the SQL store implementation to support the
new iterator-based API for ChanUpdatesInHorizon. This includes adding
SQL query pagination support and helper functions for efficient batch
processing.

The SQL implementation uses cursor-based pagination with configurable
batch sizes, allowing efficient iteration over large result sets without
loading everything into memory. The query is optimized to use indexes
effectively and minimize database round trips.

New SQL query GetChannelsByPolicyLastUpdateRange is updated to support:
- Cursor-based pagination using (max_update_time, id) compound cursor
- Configurable batch sizes via MaxResults parameter
- Efficient batch caching with updateChanCacheBatch helper
2025-09-26 16:58:11 -07:00
..
migrations sqldb: use the new schema 2025-08-14 11:59:09 +02:00
queries sqldb: implement iterator support for ChanUpdatesInHorizon 2025-09-26 16:58:11 -07:00
amp_invoices.sql.go sqlc: update sqlc compiler to 1.29.0 2025-05-25 18:23:35 +02:00
db.go sqlc: update sqlc compiler to 1.29.0 2025-05-25 18:23:35 +02:00
db_custom.go graph/db: batch fetching for FetchChanInfos 2025-08-07 08:12:40 +02:00
db_custom_test.go scripts: add sql slices workaround to sqlc gen script 2025-07-22 17:14:55 +02:00
graph.sql.go sqldb: implement iterator support for ChanUpdatesInHorizon 2025-09-26 16:58:11 -07:00
invoice_events.sql.go sqlc: update sqlc compiler to 1.29.0 2025-05-25 18:23:35 +02:00
invoices.sql.go sqlc: update sqlc compiler to 1.29.0 2025-05-25 18:23:35 +02:00
migration.sql.go sqlc: update sqlc compiler to 1.29.0 2025-05-25 18:23:35 +02:00
models.go sqldb+graph/db: prefix graph SQL objects with "graph_" 2025-07-15 18:40:16 +02:00
querier.go graph/db+sqldb: improve performance of chan update sql migration 2025-09-01 08:07:57 +02:00