getAlby / lndhub.go

Accounting wrapper for the Lightning Network. It provides separate accounts for end-users. (LndHub compatible API written in Go)
GNU General Public License v3.0
86 stars 23 forks source link

feat: include amount in index #453

Closed reneaaron closed 9 months ago

reneaaron commented 11 months ago

Speed up the check_balance() trigger that is being run after every payment.

bumi commented 11 months ago

@reneaaron see the test error. how did we do it with other migrations?

reneaaron commented 11 months ago

Interesting, never seen that before. :thinking:

Could be related to this: https://github.com/golang-migrate/migrate/issues/284

I'll give it a try to split up the migration into 2 separate ones.

reneaaron commented 11 months ago

@bumi Added bun splits that separate these statements into different transactions. (like it's done in previous migrations, too)