Add docs on the manually created postgres indices

This commit is contained in:
David Dworken 2022-10-23 17:35:30 -07:00
parent 41586ba034
commit 37c36ea5f1

View File

@ -17,6 +17,13 @@ type EncHistoryEntry struct {
ReadCount int `json:"read_count"`
}
/*
Manually created the indices:
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);
*/
type Device struct {
UserId string `json:"user_id"`
DeviceId string `json:"device_id"`