ActivityWatch / ActivityWatch/activitywatch

Query Caching

Abierto
#991 2 comentarios 2 reacciones 0 asignados Ver en GitHub
improves: performance improves: ux module: webui stale type: enhancement
Lenguaje dominante
Python
Estrellas
18.9k
Forks
1k
Merge medio
1 d 4 h
PR fusionados (30 d)
28

Descripción

I've thought about adding proper caching of queries to make browsing historical data much snappier, after the first open.

The goal is to:
- make the day/week/month selector (simple barchart at top) load faster
- make the "Timeline (Barchart)" load faster

As a first step, I've considered adding query caching to aw-client-js such that queries are:

- cached by timespan
- if timespan spans the future, don't cache
- only cached if the query returned data for the timespan

Should be a simple improvement, that could massively improve responsiveness and thus general UX of web UI, especially when browsing historical data.

I'm not sure what kind of cache expiry to add, but I might figure that out as I get going.

PRs:
- https://github.com/ActivityWatch/aw-client-js/pull/44
- https://github.com/ActivityWatch/aw-webui/pull/501

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.