mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-13 12:32:48 +02:00
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. |
||
|---|---|---|
| .. | ||
| db | ||
| testdata | ||
| builder.go | ||
| builder_test.go | ||
| errors.go | ||
| interfaces.go | ||
| log.go | ||
| notifications_test.go | ||
| setup_test.go | ||
| stats.go | ||