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
Description:
Add PostgreSQL indexes to the events table to speed up the analytics queries that power the dashboard.
Tasks:
(group_id, event_type, created_at)for cycle analytics queries(member_address, event_type)for member history queriesEXPLAIN ANALYZEDifficulty: medium
Points: 150