Suggestion: Optimizing the Database

Open
#487 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust

Research direction

No files or tests are named in the issue. Start by understanding how aw-server-rust stores activity events and whether there is any existing cleanup or retention configuration. Done would require an agreed definition of "tiny events" and a safe cleanup behavior, likely with tests around event deletion and configuration.

Written by the indexing model from the issue text.

Description

I think it would be beneficial if there was a feature, where after the day rolled over, the tiny events from the previous day would be cleared out. Often you would find events or window titles in the activity logs that were only there for a few seconds, clearing these out might help optimize the database size and also make it a bit less crowded. Maybe a config option for the minimum size of the event would be better?

Example of what I mean:
image

Dominant language
Rust
Stars
322
Forks
105
Avg merge
3d 10h
Merged PRs (30d)
22

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ActivityWatch/aw-server-rust

All issues in ActivityWatch/aw-server-rust

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.