lnd/sqldb/sqlc/queries
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
..
amp_invoices.sql multi: add call to directly insert an AMP sub-invoice 2025-01-23 09:10:59 +01:00
graph.sql sqldb: implement iterator support for ChanUpdatesInHorizon 2025-09-26 16:58:11 -07:00
invoice_events.sql sqldb: simplify and fixup the existing invoice store schema and queries 2024-03-01 10:08:07 +01:00
invoices.sql sqldb+invoices: Optimize invoice fetching when the reference is only a hash 2025-01-23 09:11:01 +01:00
migration.sql sqldb: add table to track custom SQL migrations 2025-01-23 09:10:59 +01:00