Skip to content

Partial index on Paranoia when using MySQL #560

@semutliar

Description

@semutliar

how MySQL handles indexes, particularly with respect to conditional indexing or optimizing queries that involve conditions like deleted_at IS NULL? this is based on the readme docs that mentions using this kind of index: https://github.com/rubysherpas/paranoia?tab=readme-ov-file#about-indexes
add_index :clients, :group_id, where: "deleted_at IS NULL"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions