From 51f2c15f35b714739f6a086ad9731b58b3feeaba Mon Sep 17 00:00:00 2001 From: David Dworken Date: Fri, 22 Sep 2023 19:01:27 -0700 Subject: [PATCH] Add index for deletion requests now that the volume of deletion requests will increase --- shared/data.go | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/data.go b/shared/data.go index a48e7bf..eb2bc66 100644 --- a/shared/data.go +++ b/shared/data.go @@ -26,6 +26,7 @@ CREATE INDEX CONCURRENTLY entry_id_idx ON enc_history_entries USING btree(encryp CREATE INDEX CONCURRENTLY device_id_idx ON enc_history_entries USING btree(device_id); CREATE INDEX CONCURRENTLY read_count_idx ON enc_history_entries USING btree(read_count); CREATE INDEX CONCURRENTLY redact_idx ON enc_history_entries USING btree(user_id, device_id, date); +CREATE INDEX CONCURRENTLY del_user_idx ON deletion_requests USING btree(user_id); */ type Device struct {