lnd/graph/db
Elle Mouton 218aa9eaa8
graph/db: move sanity check out of insertChannel
We do this so that this lookup is only done in the situation it is
actually needed. During a migration, we dont need to special case this
AlreadyExists error since we will terminate the transaction either way.
So there is no need for the extra lookup during the migration.

A timing analysis showed that this query was significantly impacting the
performance of the migration when run with a postgres backend.
2025-08-14 07:57:33 +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 multi: remove DefaultQueryConfig 2025-08-13 14:43:31 +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 graph/db: let ForEachNodeCached maybe fetch node addresses 2025-08-06 09:50:54 +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 multi: remove the NodeRTx interface type 2025-08-06 09:56:21 +02:00
interfaces.go multi: remove the NodeRTx interface type 2025-08-06 09:56:21 +02:00
kv_store.go graph/db: refactor makeZombiePubkeys 2025-08-07 08:04:20 +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 multi: remove DefaultQueryConfig 2025-08-13 14:43:31 +02:00
sql_migration_test.go multi: remove DefaultQueryConfig 2025-08-13 14:43:31 +02:00
sql_store.go graph/db: move sanity check out of insertChannel 2025-08-14 07:57:33 +02:00
test_kvdb.go graph/db: skip TestGraphLoading for non-bbolt store 2025-05-23 10:53:27 +02:00
test_postgres.go graph/db+sqldb: find best default query cfg values for sqlite & postgres 2025-08-13 14:43:31 +02:00
test_sqlite.go graph/db+sqldb: find best default query cfg values for sqlite & postgres 2025-08-13 14:43:31 +02:00