Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial index on Paranoia when using MySQL #560

Open
semutliar opened this issue Aug 10, 2024 · 0 comments
Open

Partial index on Paranoia when using MySQL #560

semutliar opened this issue Aug 10, 2024 · 0 comments

Comments

@semutliar
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant