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

[Feature Request] Require indexed fields in findBy() and similar methods #456

Open
priyadi opened this issue May 15, 2023 · 0 comments
Open

Comments

@priyadi
Copy link

priyadi commented May 15, 2023

Forgetting to add an index is very common, and when that happens, we usually don't notice that until the app is already long in production.

I propose creating a PHPstan rule that ensures the existence of an index in these areas:

  • criteria & orderBy parameters of findBy & similar methods
  • where, orderBy, groupBy in QueryBuilder
  • where and orderBy in Criteria
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