File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 211211 is fully populated. This new behaviour can be opted out of via the new
212212 ` --db.sync-graph-cache-load ` option.
213213
214+ * [ Invoice pagination queries no longer use
215+ ` OFFSET ` ] ( https://github.com/lightningnetwork/lnd/pull/10700 ) . The five
216+ invoice filter queries previously used ` LIMIT+OFFSET ` for internal batching,
217+ which requires the database to scan and discard all preceding rows on every
218+ page. All pagination is now cursor-based (` WHERE id >= cursor ` ), making every
219+ page an efficient primary-key range scan regardless of how deep into the
220+ result set the query is.
221+
214222* [ Replace the catch-all ` FilterInvoices ` SQL query with five focused,
215223 index-friendly queries] ( https://github.com/lightningnetwork/lnd/pull/10601 )
216224 (` FetchPendingInvoices ` , ` FilterInvoicesBySettleIndex ` ,
You can’t perform that action at this time.
0 commit comments