Flagsmith/flagsmith

Limit number of environments

Open

#3 875 ouverte le 2 mai 2024

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Python (264 forks)batch import
good first issue

Métriques du dépôt

Stars
 (3 475 stars)
Métriques de merge PR
 (Merge moyen 3j 7h) (157 PRs mergées en 30 j)

Description

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.

Guide contributeur