docs: add release note for v1 node horizon query optimization

This commit is contained in:
Elle Mouton 2026-03-30 10:22:48 +02:00
parent 2fda82b68c
commit f3d9b1f2a4
No known key found for this signature in database
GPG key ID: D7D916376026F177

View file

@ -228,6 +228,16 @@
targeting uniquely-constrained columns. Also drop four redundant indexes
that duplicated UNIQUE constraints or were never used as query filters.
* [Optimize the v1 node horizon
query](https://github.com/lightningnetwork/lnd/pull/10692). Split the
`GetNodesByLastUpdateRange` query into separate all-nodes and public-only
variants, removing a dynamic `COALESCE`/`OR` branch that defeated the query
planner. The public-only `EXISTS` check is rewritten as two direct index
probes instead of `node_id_1 OR node_id_2`. Supporting indexes are upgraded
to composite keys matching the full query shapes. On SQLite, the hot
public-only path sees a ~42% speedup; on the previous code it could stall
for minutes.
## Deprecations
### ⚠️ **Warning:** Deprecated fields in `lnrpc.Hop` will be removed in release version **0.22**