lnd/graph
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
..
db graph/db: move sanity check out of insertChannel 2025-08-14 07:57:33 +02:00
testdata refactor: move various duties from ChannelRouter to graph.Builder 2024-07-15 15:56:33 +02:00
builder.go graph: remove outdated TODO 2025-08-13 08:45:52 +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