Skip to content

Intercept Arel calls to suggest indexes #101

@plentz

Description

@plentz

Intercept Arel querys to allow query specific indexes. Maybe something like this:

LolDba.suggest_index do
  Customer.where(name: 'Diego')
end

And we suggest an index on name

related:
https://github.com/rails/rails/tree/master/activerecord/lib/arel

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions