storj/satellite/accounting
paul cannon ae5947327b satellite/accounting: Use metabase.AliasPiece with tally observer
We want to eliminate usages of LoopSegmentEntry.Pieces, because it is
costing a lot of cpu time to look up node IDs with every piece of every
segment we read.

In this change, we are eliminating use of LoopSegmentEntry.Pieces in the
node tally observer (both the ranged loop and segments loop variants).
It is not necessary to have a fully resolved nodeID until it is time to
store totals in the database. We can use NodeAliases as the map key
instead, and resolve NodeIDs just before storing totals.

Refs: https://github.com/storj/storj/issues/5622
Change-Id: Iec12aa393072436d7c22cc5a4ae1b63966cbcc18
2023-03-29 12:24:05 +00:00
..
live satellite/{accounting,redis}: Use ARGV in redis scripts 2022-09-28 14:43:00 +00:00
nodetally satellite/accounting: Use metabase.AliasPiece with tally observer 2023-03-29 12:24:05 +00:00
projectbwcleanup satellite/satellitedb: create index for interval_day for project_bandwidth_daily_rollup 2023-02-03 10:02:58 +00:00
rollup satellite/accounting: Use metabase.AliasPiece with tally observer 2023-03-29 12:24:05 +00:00
rolluparchive satellites/orders: populate egress_dead in project_bandwidth_daily_rollups 2021-10-06 16:54:49 +00:00
tally satellite/accounting: Use metabase.AliasPiece with tally observer 2023-03-29 12:24:05 +00:00
billing_test.go satellite: use segment count for billing 2021-10-27 19:21:50 +00:00
bucketstats.go satellite/accounting: add metrics for total pending objects 2022-06-06 12:04:46 +00:00
bucketusage.go satellite/accounting/tally: use objects iterator instead metaloop 2021-07-20 15:52:18 +00:00
common.go all: fix error naming 2021-04-29 15:38:21 +03:00
db_test.go satellite/accounting: Use metabase.AliasPiece with tally observer 2023-03-29 12:24:05 +00:00
db.go satellite/accounting: Use metabase.AliasPiece with tally observer 2023-03-29 12:24:05 +00:00
projectlimitcache_test.go satellite/metainfo: use project limit cache with limiter 2023-03-14 08:11:11 +00:00
projectlimitcache.go satellite/metainfo: use project limit cache with limiter 2023-03-14 08:11:11 +00:00
projectusage_test.go satellite/metabase: add piece size calculation to segment 2023-02-22 11:04:02 +00:00
projectusage.go satellite/accounting: fix project limit cache usage 2023-03-10 14:42:38 +00:00