status-go/appdatabase/migrations
Stefan bf29188b2d fix(wallet) add index on transfers(blk_number, loaded)
Improve performance of queries for
- transfer.GetTransfersInRange
- transfer.GetTransfersByAddress
- transfer.GetTransfersByAddressAndBlock
- transfer.GetTransfers
- transfer.GetPreloadedTransactions

For 16952 entries worst case scenario tested with `sqlcipher`:
- Before: Run Time: real 0.897 user 0.728139 sys 0.166714
- After:  Run Time: real 0.001 user 0.000437 sys 0.000189

A single composite index (with the default one) might work better though
2023-06-06 12:09:38 +02:00
..
sql fix(wallet) add index on transfers(blk_number, loaded) 2023-06-06 12:09:38 +02:00
bindata.go fix(wallet) add index on transfers(blk_number, loaded) 2023-06-06 12:09:38 +02:00
migrate.go Use goimports instead of gofmt 2020-01-06 10:17:23 +01:00