Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alternative version of faster transWhere
This PR is an alternative version of rainlab#586 Instead of creating a separate method that has a different behavior to the original implementation, I managed to fix ``transWhere`` itself by utilizing 2 queries instead of the slow orWhere clause. This implementation also preserves the fallback functionality. I made some tests on my project (originally discussed here: rainlab#581) - now I have 2 queries that execute in ~ 5 ms instead of a single 60 second query. The improvement is significant. Comments are welcome.
- Loading branch information