mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 20:07:52 +02:00
Add docs on the manually created postgres indices
This commit is contained in:
parent
41586ba034
commit
37c36ea5f1
@ -17,6 +17,13 @@ type EncHistoryEntry struct {
|
|||||||
ReadCount int `json:"read_count"`
|
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 {
|
type Device struct {
|
||||||
UserId string `json:"user_id"`
|
UserId string `json:"user_id"`
|
||||||
DeviceId string `json:"device_id"`
|
DeviceId string `json:"device_id"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user