Skip to content

Archive old messages into separate files #101

Open

Description

@neoromantic

If a cache with years of history becomes too big or too slow, old messages could move out of the main file into archive files (per account and period), which search and tg sql can still reach, without deleting anything.

Questions: SQLite or Parquet for the archive; how tg messages search and tg sql read archived data (tg sql blocks ATTACH today); how moving rows keeps their history ranges and sync cursors; what tg status shows.

Do this only if the #80 benchmark shows that a big cache is too large or too slow with the changes already planned. Done when the design doc decides, and, if the answer is yes, a follow-up issue specifies it. Depends on #80.

Activity

  1. added
    enhancement
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions