Mazání starých dat z databáze #42

Closed
opened 2026-02-04 14:29:27 +01:00 by batmanisko · 1 comment
Member

Feature: Clean Up Old Data from Database

Source: TODO.md line 33

Implementation Notes

Historical data in the database currently accumulates indefinitely and serves no purpose. Old records should be periodically cleaned up.

Approach:

  1. Define a retention policy (e.g., keep data for the last N days/weeks/months)
  2. Implement a cleanup routine on the server (scheduled task or on-startup job)
  3. Identify which tables/collections contain date-bound data (daily menus, selections, etc.)
  4. Add a configurable retention period via environment variable
  5. Log cleanup actions for auditability
  6. Consider keeping aggregated statistics even after raw data is purged
## Feature: Clean Up Old Data from Database **Source:** TODO.md line 33 ### Implementation Notes Historical data in the database currently accumulates indefinitely and serves no purpose. Old records should be periodically cleaned up. **Approach:** 1. Define a retention policy (e.g., keep data for the last N days/weeks/months) 2. Implement a cleanup routine on the server (scheduled task or on-startup job) 3. Identify which tables/collections contain date-bound data (daily menus, selections, etc.) 4. Add a configurable retention period via environment variable 5. Log cleanup actions for auditability 6. Consider keeping aggregated statistics even after raw data is purged
batmanisko added the Vylepšení label 2026-02-04 14:30:19 +01:00
Owner

Nově se již používají pro statistiky, tj. chceme je zachovat.

Nově se již používají pro statistiky, tj. chceme je zachovat.
mates closed this issue 2026-03-09 07:56:20 +01:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Marbes/Luncher#42