storj/satellite/metainfo/metabase
Fadila Khadar a8b5f8f990 satellite/metainfo/metabase: select then delete expired objects
We were deleting expired objects by directly executing a delete query.
With this change, we first select the objects to be deleted and then
delete them (as recommended by cockroachdb for deleting using a non indexed
column).

Change-Id: Ied150fbdc7031a343a74e0b9dab316598188ef66
2021-03-22 17:39:13 +01:00
..
alias_test.go satellite/metainfo/metabase: add node alias table 2021-02-05 14:34:15 +02:00
alias.go satellite/metainfo/metabase: use alias pieces in segments table 2021-02-11 16:40:37 +02:00
aliascache_test.go satellite/metainfo/metabase: optimize ConvertAliasesToPieces 2021-03-10 08:39:23 +00:00
aliascache.go satellite/metainfo/metabase: optimize ConvertAliasesToPieces 2021-03-10 08:39:23 +00:00
aliaspiece_test.go satellite/metainfo/metabase: add AliasPiece 2021-02-11 14:23:51 +02:00
aliaspiece.go satellite/metainfo/metabase: add AliasPiece 2021-02-11 14:23:51 +02:00
bench_expired_test.go satellite/metainfo/metabase: select then delete expired objects 2021-03-22 17:39:13 +01:00
bench_test.go satellite/metainfo/metabase: add iteration with prefix benchmark 2021-03-08 09:43:38 +01:00
commit_object_test.go satellite/metainfo/metabase: read created_at from DB 2021-03-15 11:37:14 +00:00
commit_object.go satellite/metainfo/metabase: cast bucket_name to []byte 2021-03-02 13:22:49 +02:00
commit_test.go satellite/metainfo/metabase: read created_at from DB 2021-03-15 11:37:14 +00:00
commit.go satellite/metainfo/metabase: pieces vs redundancy scheme validation while commiting segment 2021-03-11 16:12:52 +00:00
common_test.go satellite/metainfo/metabase: fix ParseSegmentKey to parse part numbers 2021-02-01 15:18:18 +02:00
common.go satellite/metainfo/metabase: use alias pieces in segments table 2021-02-11 16:40:37 +02:00
consts_test.go satellite/metainfo/metabase: disable PlainSize validation 2021-01-07 14:14:20 +00:00
db_migrate_test.go satellite/metainfo/metabase: use alias pieces in segments table 2021-02-11 16:40:37 +02:00
db_test.go satellite/metainfo/metabase: add benchmark 2021-01-25 14:59:24 +00:00
db.go satellite/metainfo/metabase: rename etag column to encrypted_etag 2021-03-18 18:34:29 +02:00
delete_bucket_test.go satellite/metainfo/metabase: read created_at from DB 2021-03-15 11:37:14 +00:00
delete_bucket.go satellite/metainfo/metabase: cast bucket_name to []byte 2021-03-02 13:22:49 +02:00
delete_expired_test.go satellite/metainfo/metabase: read created_at from DB 2021-03-15 11:37:14 +00:00
delete_expired.go satellite/metainfo/metabase: select then delete expired objects 2021-03-22 17:39:13 +01:00
delete_test.go satellite/metainfo/metabase: read created_at from DB 2021-03-15 11:37:14 +00:00
delete.go satellite/metainfo/metabase: cast bucket_name to []byte 2021-03-02 13:22:49 +02:00
encoding.go satellite/metainfo/metabase: remove old TODO notes 2021-03-05 15:16:46 +02:00
get_test.go satellite/metainfo/metabase: read created_at from DB 2021-03-15 11:37:14 +00:00
get.go satellite/metainfo/metabase: read created_at from DB 2021-03-15 11:37:14 +00:00
iterator_test.go satellite/metainfo/metabase: use key with prefix as the next cursor 2021-02-28 22:05:42 +02:00
iterator_util_test.go satellite/metainfo/metabase: fix iterator boundaries 2021-02-28 21:19:51 +02:00
iterator.go satellite/metainfo/metabase: cast bucket_name to []byte 2021-03-02 13:22:49 +02:00
list_segments_test.go satellite/metainfo/metabase: read created_at from DB 2021-03-15 11:37:14 +00:00
list_segments.go satellite/metainfo/metabase: read created_at from DB 2021-03-15 11:37:14 +00:00
list.go metainfo/metabase: iterate through pending objects by key 2021-02-03 11:44:05 +01:00
loop_test.go satellite/metainfo/metabase: read created_at from DB 2021-03-15 11:37:14 +00:00
loop.go satellite/metainfo/metabase: add extra validation to IterateLoopSegments 2021-03-06 11:19:36 +02:00
raw.go satellite/metainfo/metabase: add RepairedAt to RawSegment 2021-03-19 11:06:59 +00:00
streamstat_test.go satellite/metainfo{,/metabase}: add GetStreamPieceCountByNodeID 2021-03-08 16:43:17 +02:00
streamstat.go satellite/metainfo{,/metabase}: add GetStreamPieceCountByNodeID 2021-03-08 16:43:17 +02:00
test_test.go satellite/metainfo/metabase: select then delete expired objects 2021-03-22 17:39:13 +01:00
update_test.go satellite/metainfo/metabase: add NewRedundancy parameter for UpdateSegmentPieces method 2021-03-22 08:12:56 +00:00
update.go satellite/metainfo/metabase: add NewRedundancy parameter for UpdateSegmentPieces method 2021-03-22 08:12:56 +00:00
util.go satellite/metainfo/metabase: commit object without proofs 2020-11-09 15:18:07 +00:00