PostHog/posthog

Feature Flag Hash Key Overrides table can grow out of control

開放

#16,885 建立於 2023年8月2日

 (5 則留言) (0 個反應) (0 位負責人)Python (988 個分叉)batch import
backlogbugfeature/feature-flagsgood first issueteam/feature-flagsteam/flags-platform

倉庫指標

星標
 (16,704 顆星)
PR 合併指標
 (平均合併 17小時 29分鐘) (30 天內合併 995 個 PR)

描述

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!

貢獻者指南