fix: keep a large enough limit on group-by query (#28754)
Small change on top of https://github.com/frappe/frappe/pull/28740 Reason: Site with many many users might still have huge # of rows being returned. E.g. FC. This just makes UX slightly bad, but there's easy workaround for it. Users can just apply this filter -> "Owner = Self", whether users know it or not is a different question.
This commit is contained in:
parent
7c06c845ea
commit
82264e7986
1 changed files with 1 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ def get_group_by_count(doctype: str, current_filters: str, field: str) -> list[d
|
|||
group_by=f"`tab{doctype}`.{field}",
|
||||
fields=["count(*) as count", f"`{field}` as name"],
|
||||
order_by="count desc",
|
||||
limit=1000,
|
||||
)
|
||||
|
||||
if field == "owner":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue