Skip to content

[Performance] Add database query indexing for analytics #896

@Xoulomon

Description

@Xoulomon

Description:
Add PostgreSQL indexes to the events table to speed up the analytics queries that power the dashboard.

Tasks:

  • Add index on (group_id, event_type, created_at) for cycle analytics queries
  • Add index on (member_address, event_type) for member history queries
  • Measure query execution time before and after with EXPLAIN ANALYZE

Difficulty: medium
Points: 150


Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions