Hi,
Say there's a UniqueEvent model with a belongs_to :cause association.
unique_events table already has a multi-column uniqueness index like [:cause_id, :some_type, :uuid], unique: true, name: "very_unique_index".
lol_dba will still suggest to add a [:cause_id] index, even though there already is an index where :cause_id is the leftmost term (and no partial indexing is going on).
Hi,
Say there's a UniqueEvent model with a
belongs_to :causeassociation.unique_eventstable already has a multi-column uniqueness index like[:cause_id, :some_type, :uuid], unique: true, name: "very_unique_index".lol_dbawill still suggest to add a[:cause_id]index, even though there already is an index where:cause_idis the leftmost term (and no partial indexing is going on).