lnd/graph
Elle Mouton dc6f9256bc
graph/db: batch fetch channels in ForEachNodeCached
Previously, ForEachNodeCached would batch fetch node _feature_ data but
would still fetch the channel set of each node in a node-by-node fashion
which is not ideal. So this commit updates this method to make use of
the new sqldb.ExecuteCollectAndBatchWithSharedDataQuery helper. It lets
us batch load channel data for a range of node IDs.

This _greatly_ improves the performance of the method.
2025-08-05 08:00:19 +02:00
..
db graph/db: batch fetch channels in ForEachNodeCached 2025-08-05 08:00:19 +02:00
testdata refactor: move various duties from ChannelRouter to graph.Builder 2024-07-15 15:56:33 +02:00
builder.go multi: let ForEachNodeChannel take a reset param 2025-07-15 11:23:27 +02:00
builder_test.go refactor+multi: use *lnwire.FeatureVector for ChannelEdgeInfo features 2025-07-01 17:02:07 +02:00
errors.go multi: use the "errors" package everywhere 2025-06-30 09:46:55 +02:00
interfaces.go multi: let ForEachNodeChannel take a reset param 2025-07-15 11:23:27 +02:00
log.go multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
notifications_test.go refactor+multi: use *lnwire.FeatureVector for ChannelEdgeInfo features 2025-07-01 17:02:07 +02:00
setup_test.go refactor: move various duties from ChannelRouter to graph.Builder 2024-07-15 15:56:33 +02:00
stats.go graph: rename routerStats to builderStats 2025-02-07 13:01:39 +02:00