Flagsmith/flagsmith

Limit number of environments

Open

#3,875 创建于 2024年5月2日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Python (264 fork)batch import
good first issue

仓库指标

Star
 (3,475 star)
PR 合并指标
 (平均合并 3天 7小时) (30 天内合并 157 个 PR)

描述

Since there are some query patterns that are inherently N+1 given the way our permission system works, we should soft limit the number of environments users can create to partially mitigate this impact.

This morning @matthewelwell ran some queries in production and it turns out we have active users that have huge numbers of environments (in the thousands). So whatever limit we put into place will have to grandfather in the existing clients since they're already operating above them.

The suggested limit is to put it at 100 and perhaps we should build in the ability to grant more limits for users that really want them.

贡献者指南