Skip to content

/metrics endpoint should use environments_v2 table to aggregate identity overrides #6133

@Zaimwa9

Description

@Zaimwa9

At the moment, identities metrics aggregation is done, leading to extra computation and slow response time for organisations with high number of identities

    override_items = (
        ddb_environment_v2_wrapper.get_identity_overrides_by_environment_id(
            environment_id=environment_id,
            feature_id=feature_id,
        )
    )

It should be using the environments_v2_table instead

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions