Skip to content

Little performance issue on pagination #2473

Closed
@iCodr8

Description

@iCodr8

To get the total value for the pagination a query like this is used:

200ms

SELECT count(DISTINCT e0_.id) AS sclr_0 FROM xxxxxx e0_ WHERE e0_.archived = ? AND e0_.team_id = ?

When the distinct is removed on this query, it will be much faster. An I think the distinct is not really used on this request.

80ms

SELECT count(e0_.id) AS sclr_0 FROM xxxxxx e0_ WHERE e0_.archived = ? AND e0_.team_id = ?

What do you think?

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