storj/satellite/satellitedb/dbx
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
..
gen satellite/satellitedb,multinode/multinodedb: update to latest dbx 2023-09-11 17:21:02 +00:00
templates satellite/satellitedb,multinode/multinodedb: update to latest dbx 2023-09-11 17:21:02 +00:00
accounting_node.dbx satellite/satellitedb/dbx: document accounting tables 2023-02-24 16:04:29 +02:00
accounting_project.dbx satellite/satellitedb: change bucket_bandwidth_rollups primary key 2023-03-03 16:25:35 +00:00
accounting.dbx satellite/satellitedb/dbx: document accounting tables 2023-02-24 16:04:29 +02:00
audit.dbx satellite/satellitedb/dbx: document audit tables 2023-02-27 09:56:39 +00:00
billing.dbx satellite/console: add STORJ bonus to transactions 2023-05-26 20:36:30 +00:00
cockroach.go private/dbutil: use dbutil and tagsql from storj.io/private 2021-04-23 14:36:52 +03:00
gen.go satellite/satellitedb/dbx/gen: use go instead of sh 2023-01-10 16:30:39 +00:00
graceful_exit.dbx satellite/satellitedb/dbx: document gracefulexit tables 2023-02-23 19:14:51 +02:00
identity.dbx satellite/satellitedb/dbx: document peer_identity table 2023-02-24 14:06:46 +00:00
node_payments.dbx satellite/satellitedb/dbx: document node payments 2023-02-27 14:13:35 +00:00
node_reputation.dbx satellite/satellitedb/dbx: add comments for node_reputation.dbx 2023-02-10 17:10:34 +02:00
node.dbx satellite/satellitedb: add tag information to nodes selected for upload/downloads 2023-07-07 07:54:16 +00:00
oauth.dbx satellite/satellitedb/dbx: document oauth tables 2023-02-28 09:07:58 +00:00
project_bucket.dbx satellite/satellitedb: alter bucket_metainfos primary key 2023-10-03 12:23:00 +00:00
project.dbx satellite/console: fix transaction error when inviting project members 2023-06-23 20:17:37 +00:00
repair.dbx satellite/satellitedb: add placement column to repair_queue 2023-09-12 11:29:18 +00:00
satellitedb.dbx satellite/satellitedb/dbx/gen: use go instead of sh 2023-01-10 16:30:39 +00:00
satellitedb.dbx.go satellite/satellitedb: alter bucket_metainfos primary key 2023-10-03 12:23:00 +00:00
satellitedb.dbx.pgx.sql satellite/satellitedb: alter bucket_metainfos primary key 2023-10-03 12:23:00 +00:00
satellitedb.dbx.pgxcockroach.sql satellite/satellitedb: alter bucket_metainfos primary key 2023-10-03 12:23:00 +00:00
user.dbx satellite/{db, admin}: added endpoints to update user's and project's user_agent 2023-06-16 19:41:05 +00:00