kernelci / kernelci/dashboard

Improve tree details endpoints performance

Open
#1,722 0 comments 0 reactions 1 assignee Claimed by @gustavobtflores View on GitHub
Backend
Dominant language
Python
Stars
9
Forks
31
Avg merge
3d 19h
Merged PRs (30d)
16

Description

The TreeDetails page makes requests to multiple endpoints with concerning response times:

#### 1. GET /api/tree/{treeName}/{gitBranch}/{treeId}/summary
- Dashboard response time: ~2.5s
- Grafana average: 3.8s
- Also available as: `/api/tree/{treeId}/summary`

#### 2. GET /api/tree/{treeName}/{gitBranch}/{treeId}/full
- Dashboard response time: ~2.8s
- Grafana average: 1.5s
- Response size: >5MB for large trees
- Also available as: `/api/tree/{treeId}/full`

#### 3. GET /api/tree/{treeName}/{gitBranch}/{treeId}/commits
- Dashboard response time: ~13s
- Grafana average: 7s
- Also available as: `/api/tree/{treeId}/commits`

The commits endpoint (~13s) is particularly concerning as it blocks the
commit navigation graph from rendering, significantly impacting user experience.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.