Flagsmith/flagsmith

Limit number of environments

開放

#3,875 建立於 2024年5月2日

 (2 則留言) (0 個反應) (0 位負責人)Python (264 個分叉)batch import
good first issue

倉庫指標

星標
 (3,475 顆星)
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.

貢獻者指南