Skip to content

v2.2.0 Unnecessary suggestions for indexes that already exist as leftmost term in another index. #120

@Epigene

Description

@Epigene

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).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions