PostHog/posthog

Feature Flag Hash Key Overrides table can grow out of control

Open

#16 885 ouverte le 2 août 2023

Voir sur GitHub
 (5 commentaires) (0 réactions) (0 assignés)Python (988 forks)batch import
backlogbugfeature/feature-flagsgood first issueteam/feature-flagsteam/flags-platform

Métriques du dépôt

Stars
 (16 704 stars)
Métriques de merge PR
 (Merge moyen 17h 29m) (995 PRs mergées en 30 j)

Description

Bug description

The hashkeyoverrides table can grow seriously out of control because it keeps all rows for stale flags. We cascade delete, but since flags are soft deleted, this table doesn't clean itself up automatically, which makes it hard to keep the size manageable

Additional context

We should run a nightly/weekly job , or whenever a flag is deleted, to remove stale rows from this table.

Thank you for your bug report – we love squashing them!

Guide contributeur