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

COUNT reads a select query and checks length. #20

Open
davemackintosh opened this issue Apr 8, 2017 · 0 comments
Open

COUNT reads a select query and checks length. #20

davemackintosh opened this issue Apr 8, 2017 · 0 comments

Comments

@davemackintosh
Copy link
Contributor

This is causing some severe headaches with a client of mine who has thousands of rows (not many but enough to slow down) which have many associations.

This adapter does a SELECT WHERE and counts that length when it should do a SELECT COUNT WHERE to prevent massive overhead.

Ive read about this issue in other adapters but mysql and postgres are probably a lot more up to date.

I'm happy to submit a PR to fix unless there's a solution elsewhere?

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