Skip to content

perf: optimize EventCounterService.GetEvaluationTimeseriesCount #2078

@nnnkkk7

Description

@nnnkkk7

Describe the feature you'd like

Problem

API is a bit slow for multi-variation and long time-range queries.

Root Causes

  1. Excessive Redis Operations: Individual Redis calls per variation (N×24 hours)
  2. Inefficient DB Indexing: Missing composite index causes full table scans
  3. HyperLogLog Overhead: Temporary key creation/deletion overhead

Background

No response

Alternative solutions

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions