Add index for deletion requests now that the volume of deletion requests will increase

This commit is contained in:
David Dworken 2023-09-22 19:01:27 -07:00
parent 3f0adbc324
commit 51f2c15f35
No known key found for this signature in database

View File

@ -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 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 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 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 { type Device struct {