storj/satellite/satellitedb
Michal Niewrzal 2c76c1e6ae satellite/satellitedb: alter bucket_metainfos primary key
Current bucket_metainfos table schema was far from optimal. All
operations are using project_id and name to find bucket but primary key
was on id field which is completely not used. Turns out that secondary
index was not as fast as it could be because each select was also joining
primary index which was slowing down whole query.

Primary key is changed to project_id/name. Other indexes are dropped
and id column is now nullable which gives us space for dropping it
completely from schema and code later.

Change-Id: I477056a4243d39e39489f1473de01ded1ed24bbb
2023-10-03 12:23:00 +00:00
..
dbx satellite/satellitedb: alter bucket_metainfos primary key 2023-10-03 12:23:00 +00:00
satellitedbtest satellite/satellitedb: cleanup testing access 2023-02-06 14:36:11 +02:00
testdata satellite/satellitedb: alter bucket_metainfos primary key 2023-10-03 12:23:00 +00:00
accountfreezeevents_test.go satellite/{payment,console} rename freeze events and add violation event 2023-09-29 16:52:23 +00:00
accountfreezeevents.go satellite/{payment,console} rename freeze events and add violation event 2023-09-29 16:52:23 +00:00
apikeys.go satellite/{console,satellitedb}: clean up obsolete project member code 2023-06-13 22:13:04 +00:00
attribution.go satellite/{db, admin}: added endpoints to update user's and project's user_agent 2023-06-16 19:41:05 +00:00
audithistory.go satellite/reputation: new ApplyUpdates() method 2022-06-07 15:22:25 +00:00
billingdb.go satellite/satellitedb: use utilities for conversions 2023-06-08 16:13:47 +03:00
bucketsdb.go satellite/buckets: handle bucket exists better 2023-08-23 14:40:31 +00:00
coinpaymentstxs.go satellite/satellitedb: use utilities for conversions 2023-06-08 16:13:47 +03:00
compensation.go satellite/compensation: smaller txns for RecordPeriod 2021-03-02 20:14:25 +00:00
consoledb_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
consoledb.go satellite/{db,console,payments}: unfreeze user with no failed invoices 2023-08-01 17:54:39 +00:00
containment.go satellite/audit: add GetAllContainedNodes method to ReverifyQueue 2023-02-02 00:39:29 +00:00
customers_test.go satellite/satellitedb: add package info to customers db 2023-03-31 15:51:30 +00:00
customers.go satellite/payments: Remove expired package credits 2023-05-22 11:58:37 +00:00
database.go satellite/satellitedb: add utility for converting slices 2023-06-05 14:12:02 +00:00
gracefulexit.go sql: capitalize keywords 2022-03-01 15:19:38 +00:00
invoiceprojectrecords.go satellite/satellitedb: paginating on ordered invoice 2023-05-16 14:05:34 +00:00
migrate_gen.go all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
migrate_test.go go.mod: bump to pgx/v5 2023-06-14 18:32:54 +03:00
migrate.go satellite/satellitedb: alter bucket_metainfos primary key 2023-10-03 12:23:00 +00:00
migratez.go satellite/satellitedb: alter bucket_metainfos primary key 2023-10-03 12:23:00 +00:00
nodeapiversion.go ci: fix lint errors 2021-05-17 13:37:31 +00:00
nodeevents_test.go satellite/nodeevents: take last_attempted into account when selecting 2022-12-01 20:08:38 +00:00
nodeevents.go satellite/nodeevents: take last_attempted into account when selecting 2022-12-01 20:08:38 +00:00
nodeselection.go satellite/nodeselection: expand SelectedNode 2023-08-07 12:44:49 +00:00
orders_test.go satellite/orders: cleanup after altering primary key 2023-03-06 16:03:11 +00:00
orders.go go.mod: bump to pgx/v5 2023-06-14 18:32:54 +03:00
overlaycache_test.go satellite/satellitedb/overlaycache: fill node tags with join for limited number of nodes 2023-09-07 19:27:53 +02:00
overlaycache.go satellite/satellitedb/overlaycache: fill node tags with join for limited number of nodes 2023-09-07 19:27:53 +02:00
payouts.go satellite/compensation: smaller txns for RecordPeriod 2021-03-02 20:14:25 +00:00
peeridentities.go all: fix dots 2020-07-16 14:58:28 +00:00
projectaccounting_test.go satellite/{projectaccounting, web}: merge settled and allocated lines for bandwidth graph 2023-09-14 15:39:56 +03:00
projectaccounting.go Revert "satellite/db: optimize project usage query" 2023-09-07 19:27:08 +00:00
projectfromdbx_test.go satellite/{console,satellitedb}: add PublicID to Project, db method GetByPublicID 2022-07-21 19:49:26 +00:00
projectinvitations_test.go satellite/console/dbcleanup: remove project invite cleanup 2023-06-23 21:15:36 +00:00
projectinvitations.go satellite/console/dbcleanup: remove project invite cleanup 2023-06-23 21:15:36 +00:00
projectmembers_test.go satellite/console: fix transaction error when inviting project members 2023-06-23 20:17:37 +00:00
projectmembers.go satellite/{console,satellitedb}: clean up obsolete project member code 2023-06-13 22:13:04 +00:00
projects_test.go satellite/db: add memberCount to project by userID 2023-06-08 17:05:28 +00:00
projects.go satellite/console: return edge URL overrides in project info responses 2023-09-12 12:10:18 -05:00
regtokens.go all: fix dots 2020-07-16 14:58:28 +00:00
repairqueue_test.go satellite/satellitedb: repairqueue.Select uses placement constraints 2023-09-25 10:14:25 +00:00
repairqueue.go satellite/satellitedb: repairqueue.Select uses placement constraints 2023-09-25 10:14:25 +00:00
reputations.go satellite/reputation: reconfigure lambda and alpha 2022-08-17 18:52:53 +00:00
resetpasstokens.go all: fix dots 2020-07-16 14:58:28 +00:00
reverifyqueue_test.go satellite/audit: test delay before Reverify 2023-02-15 23:16:23 +00:00
reverifyqueue.go satellite/audit: test delay before Reverify 2023-02-15 23:16:23 +00:00
revocation.go satellite/*: use typed lrucache and ReadCache 2023-04-21 10:49:08 +00:00
storagenodeaccounting.go satellite/satellitedb: use utilities for conversions 2023-06-08 16:13:47 +03:00
storjscanpayments.go satellite/satellitedb: use utilities for conversions 2023-06-08 16:13:47 +03:00
storjscanwallets.go satellitedb: add token balance to API endpoint 2022-08-31 22:55:16 +00:00
stripecoinpaymentsdb.go satellite/payments: rename 'stripecoinpayments' package to 'stripe' 2023-04-06 16:51:43 +00:00
userfromdbx_test.go satellite/console: add cutoff to email reminders 2022-06-09 16:45:35 +00:00
users_test.go satellite/console/dbcleanup: create console DB cleanup chore 2023-05-05 19:11:53 +00:00
users.go satellite/satellitedb: remove subquery AOST in console db cleanup funcs 2023-08-24 21:51:55 +00:00
util_test.go satellite/satellitedb: add utility for converting slices 2023-06-05 14:12:02 +00:00
util.go satellite/satellitedb: remove duplicate NullUUID 2023-06-13 15:34:41 +03:00
verifyqueue_test.go satellite/audit: help performance of pushing to audit queue 2022-11-29 15:37:49 +00:00
verifyqueue.go satellite/audit: help performance of pushing to audit queue 2022-11-29 15:37:49 +00:00
webappsessions_test.go satellite/console/dbcleanup: make chore clean up webapp sessions 2023-06-29 09:53:18 +00:00
webappsessions.go satellite/satellitedb: remove subquery AOST in console db cleanup funcs 2023-08-24 21:51:55 +00:00