lnd/graph/db
Elle Mouton ada349dcf2
graph/db: batch collect node feature data
In this commit, we update the SQLStore's ForEachNodeCacheable and
ForEachNodeCached methods to use batch collection for node feature bits.

This results in the following performance gains:

```
name                                      old time/op  new time/op  delta

ForEachNodeCacheable-native-sqlite-10     184ms ± 2%   145ms ±10%  -21.45%  (p=0.000 n=10+10)
ForEachNodeCacheable-native-postgres-10   697ms ± 8%    51ms ± 4%  -92.68%  (p=0.000 n=9+10)
```
2025-08-05 08:00:19 +02:00
..
models refactor+multi: use *lnwire.FeatureVector for ChannelEdgeInfo features 2025-07-01 17:02:07 +02:00
addr.go graph/db: de(ser)ialise opaque node addrs 2025-02-05 12:41:50 +02:00
addr_test.go graph/db: more test coverage for node addresses 2025-05-22 14:14:42 +02:00
benchmark_test.go graph/db: cover more DB methods in benchmark test 2025-08-05 08:00:18 +02:00
channel_cache.go refactor: move graph related DB code to graph/db from channeldb 2024-11-28 13:36:13 +02:00
channel_cache_test.go refactor: move graph related DB code to graph/db from channeldb 2024-11-28 13:36:13 +02:00
codec.go channeldb/graphdb: move outpoint ser/deser funcs to graphdb 2024-11-28 13:34:08 +02:00
errors.go graph/db: let IsZombieEdge return an error 2025-06-26 10:19:51 +02:00
graph.go multi: reset for ForEachNodeDirectedChannel 2025-07-15 11:25:10 +02:00
graph_cache.go graph/db: let GraghCache.AddChannel take CachedEdgeInfo 2025-06-10 20:10:35 +02:00
graph_cache_test.go graph/db: let GraghCache.AddChannel take CachedEdgeInfo 2025-06-10 20:10:35 +02:00
graph_test.go make+graph/db: add -short helper and skip tests in short mode 2025-08-05 06:34:38 +02:00
interfaces.go multi: reset for ForEachNodeDirectedChannel 2025-07-15 11:25:10 +02:00
kv_store.go multi: reset for ForEachNodeDirectedChannel 2025-07-15 11:25:10 +02:00
log.go graph/db+log: use v2 logger for graph subsystem 2025-07-29 11:34:47 +02:00
notifications.go multi: use the "errors" package everywhere 2025-06-30 09:46:55 +02:00
options.go graph/db: rename KVStoreOptions to StoreOptions 2025-05-23 11:01:17 +02:00
reject_cache.go refactor: move graph related DB code to graph/db from channeldb 2024-11-28 13:36:13 +02:00
reject_cache_test.go refactor: move graph related DB code to graph/db from channeldb 2024-11-28 13:36:13 +02:00
setup_test.go refactor: move graph related DB code to graph/db from channeldb 2024-11-28 13:36:13 +02:00
sql_migration.go graph/db: remove unused param 2025-07-31 07:19:14 +02:00
sql_migration_test.go make+graph/db: add -short helper and skip tests in short mode 2025-08-05 06:34:38 +02:00
sql_store.go graph/db: batch collect node feature data 2025-08-05 08:00:19 +02:00
test_kvdb.go graph/db: skip TestGraphLoading for non-bbolt store 2025-05-23 10:53:27 +02:00
test_postgres.go sqldb: rename ExecutePagedQuery to ExecuteBatchQuery 2025-07-31 15:32:53 +02:00
test_sqlite.go sqldb: rename ExecutePagedQuery to ExecuteBatchQuery 2025-07-31 15:32:53 +02:00