From 4d548df0d7bfea70f995f2d0d6dfb6965bfff36f Mon Sep 17 00:00:00 2001 From: Marko Malenic Date: Fri, 25 Oct 2024 09:24:28 +1100 Subject: [PATCH] feat(filemanager): update reset_current_state_index based on testing --- .../filemanager/database/migrations/0003_s3_current_state.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/workload/stateless/stacks/filemanager/database/migrations/0003_s3_current_state.sql b/lib/workload/stateless/stacks/filemanager/database/migrations/0003_s3_current_state.sql index 2df7ae27f..0aa7d9ef1 100644 --- a/lib/workload/stateless/stacks/filemanager/database/migrations/0003_s3_current_state.sql +++ b/lib/workload/stateless/stacks/filemanager/database/migrations/0003_s3_current_state.sql @@ -24,4 +24,4 @@ alter table s3_object alter column is_current_state set default true; -- Create an indexes for now, although partitioning will be required later. create index is_current_state_index on s3_object (is_current_state); -- This helps the query which resets the current state when ingesting objects. -create index reset_current_state_index on s3_object (bucket, key, version_id, sequencer); +create index reset_current_state_index on s3_object (bucket, key, version_id, sequencer, is_current_state);