storj/satellite
Michal Niewrzal 06b51258be satellite/metabase: use table stats if are up to date
Currently, to get number of entries in segments table we are doing
heavy SELECT count(*) operation. For biggest satellite it's taking
25min now. We are using this method to get stat before and after
segments loop so it adds almost 1h to overall loop time.

With current version of crdb we are using this additional code won't be
used because global configuration for stats refresh rate is inaccurate
for such large table like `segments`. Soon we should be able to upgrade
crdb and be able to adjust refresh rate per table and configure it to
satisfy defined threshold.

https://github.com/storj/storj/issues/5544

Change-Id: I05cfd9154f08894d2bc56bf716b436d1b03b87f1
2023-03-13 14:54:13 +00:00
..
abtesting console/abTesting: add support for AB testing 2022-10-27 10:57:12 +00:00
accounting satellite/accounting: fix project limit cache usage 2023-03-10 14:42:38 +00:00
admin satellite/admin: restrict api access based on user groups 2023-03-10 16:16:04 -05:00
analytics satellite/{console,analytics,accountfreeze}: send unfreeze event 2023-03-10 23:21:20 +00:00
attribution satellite: remove rewards package 2023-01-31 11:46:50 +00:00
audit satellite/audit: fix go1.19 dial timeouts and log more 2023-02-28 17:09:47 +00:00
buckets satellite/accounting/tally: fix looping over all buckets 2022-12-07 10:32:23 +00:00
compensation all: reformat comments as required by gofmt 1.19 2022-08-10 18:24:55 +00:00
console satellite/{console,analytics,accountfreeze}: send unfreeze event 2023-03-10 23:21:20 +00:00
contact satellite/overlay: configurable meaning of last_net 2023-03-09 02:20:12 +00:00
gc satellite/gc: improve comments 2023-03-08 13:15:13 +00:00
geoip satellite/geoip: skip test on macOS 2023-03-10 03:08:17 +00:00
gracefulexit satellite/metabase: add piece size calculation to segment 2023-02-22 11:04:02 +00:00
inspector {satellite/metabase, satellite/metainfo, satellite/inspector} : Use metabase.GetObjectLastCommitted instead metabase.GetObjectExactVersion 2022-09-08 07:27:22 +00:00
internalpb all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
mailservice satellite/consoleweb: fix flaky TestAuth tests 2022-08-04 19:06:07 +00:00
metabase satellite/metabase: use table stats if are up to date 2023-03-13 14:54:13 +00:00
metainfo satellite/metabase: add piece size calculation to segment 2023-02-22 11:04:02 +00:00
metrics satellite/metabase/rangedloop: measure observer duration (#5350) 2022-12-21 21:58:08 +01:00
nodeapiversion satellite/nodeapiversion: new table for tracking node api usage 2020-07-09 15:02:25 +00:00
nodeevents satellite/satellitedb/dbx: document node tables 2023-02-24 14:05:55 +00:00
nodeselection/uploadselection satellite/overlay: configurable meaning of last_net 2023-03-09 02:20:12 +00:00
nodestats satellite: return interval_end_time in DailyStorageUsage endpoint 2022-07-27 18:24:27 +00:00
oidc all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
orders satellite/orders: cleanup after altering primary key 2023-03-06 16:03:11 +00:00
overlay scripts/tests: fix test-sim-rolling-upgrade.sh 2023-03-09 23:35:36 +00:00
payments satellite/payments: add partnered field to coupon struct 2023-03-13 02:54:26 -05:00
repair satellite/overlay: remove unused mail service from overlay 2023-03-09 12:17:35 +00:00
reputation satellite/reputation: if node is DQd or exited skip applying audit 2023-02-21 18:31:21 +00:00
revocation satellite/satellitedb: move tests to their domains 2021-02-19 17:29:15 +02:00
satellitedb cmd/tools: remove migration tool code for generating missing salt 2023-03-10 16:38:54 +00:00
snopayouts all: fix error naming 2021-04-29 15:38:21 +03:00
admin.go satellite/{console,analytics,accountfreeze}: send unfreeze event 2023-03-10 23:21:20 +00:00
api.go satellite/{console,analytics,accountfreeze}: send unfreeze event 2023-03-10 23:21:20 +00:00
auditor.go satellite: cleanup orders dependencies 2023-03-09 13:34:21 +00:00
configlock_test.go all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
core.go satellite/{console,analytics,accountfreeze}: send unfreeze event 2023-03-10 23:21:20 +00:00
gc-bf_test.go satellite: use ranged loop with GC-GF peer 2023-02-13 18:32:21 +00:00
gc-bf.go satellite: use ranged loop with GC-GF peer 2023-02-13 18:32:21 +00:00
gc.go gc: remove segment loop dependency 2023-02-03 10:31:16 +00:00
peer.go satellite/peer: better error handling for SMTP parameters 2023-03-09 11:29:07 +00:00
rangedloop.go satellite/overlay: remove unused mail service from overlay 2023-03-09 12:17:35 +00:00
repairer.go satellite: cleanup orders dependencies 2023-03-09 13:34:21 +00:00