Skip to content

COUNT reads a select query and checks length.  #20

@davemackintosh

Description

@davemackintosh

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions