storj/storagenode/storagenodedb
Andrew Harding 4fdea51d5c storagenode/storagenodedb: faster test db init
Running all of the migrations necessary to initialize a storage node
database takes a significant amount of time during runs.

The package current supports initializing a database from manually coalesced
migration data (i.e. snapshot) which improves the situation somewhat.

This change takes things a bit further by changing the snapshot code to
instead hydrate the database directory from a pre-generated snapshot zip
file.

name                                old time/op  new time/op  delta
Run_StorageNodeCount_4/Postgres-16   2.50s ± 0%   0.16s ± 0%   ~     (p=1.000 n=1+1)

Change-Id: I213bbba5f9199497fbe8ce889b627e853f8b29a0
2022-12-01 20:45:36 +00:00
..
schemagen all: replace deprecated ioutil 2022-10-31 15:50:41 +00:00
storagenodedbtest storagenode/storagenodedb: faster test db init 2022-12-01 20:45:36 +00:00
testdata storagenode/storageusage: add interval_end_time, rename interval_start to timestamp 2022-08-10 01:03:00 +00:00
apikeys.go all: fix error naming 2021-04-29 15:38:21 +03:00
bandwidthdb.go sql: capitalize keywords 2022-03-01 15:19:38 +00:00
database.go storagenode/storagenodedb: faster test db init 2022-12-01 20:45:36 +00:00
db_container.go private/dbutil: use dbutil and tagsql from storj.io/private 2021-04-23 14:36:52 +03:00
deprecatedinfo.go storagenodedb: reenable utccheck in tests 2019-12-10 23:17:14 +00:00
migrations_test.go private/dbutil: use dbutil and tagsql from storj.io/private 2021-04-23 14:36:52 +03:00
notifications.go all: fix error naming 2021-04-29 15:38:21 +03:00
orders.go all: fix error naming 2021-04-29 15:38:21 +03:00
payouts.go sql: capitalize keywords 2022-03-01 15:19:38 +00:00
pieceexpiration.go all: fix error naming 2021-04-29 15:38:21 +03:00
pieceinfo.go storagenode/storagenodedb: fix fillInBlobAccess 2021-05-25 16:41:10 +00:00
piecespaceused.go all: fix error naming 2021-04-29 15:38:21 +03:00
pricing.go all: fix error naming 2021-04-29 15:38:21 +03:00
reputation.go storagenode/reputation: add vetted at timestamp 2021-07-07 18:11:54 +03:00
satellites.go sql: capitalize keywords 2022-03-01 15:19:38 +00:00
schema.go storagenode/storageusage: add interval_end_time, rename interval_start to timestamp 2022-08-10 01:03:00 +00:00
storageusage.go storagenode: use bytes instead of bytes*hour unit for used space graph 2022-10-28 18:42:45 +00:00
usedserials.go storagenode/piecestore: switch usedserials db for in-memory usedserials store 2020-05-28 12:52:52 -04:00