mirror of
https://github.com/stashapp/stash.git
synced 2026-01-30 20:13:58 +01:00
Create a new ListGroupData fragment that excludes expensive recursive count fields (scene_count_all, sub_group_count_all, etc. with depth: -1). These fields cause 10+ second queries on large databases when loading the groups list page. The full GroupData fragment is preserved for detail views where the recursive counts are needed.
27 lines
507 B
GraphQL
27 lines
507 B
GraphQL
query FindGroups($filter: FindFilterType, $group_filter: GroupFilterType) {
|
|
findGroups(filter: $filter, group_filter: $group_filter) {
|
|
count
|
|
groups {
|
|
...ListGroupData
|
|
}
|
|
}
|
|
}
|
|
|
|
query FindGroup($id: ID!) {
|
|
findGroup(id: $id) {
|
|
...GroupData
|
|
}
|
|
}
|
|
|
|
query FindGroupsForSelect(
|
|
$filter: FindFilterType
|
|
$group_filter: GroupFilterType
|
|
$ids: [ID!]
|
|
) {
|
|
findGroups(filter: $filter, group_filter: $group_filter, ids: $ids) {
|
|
count
|
|
groups {
|
|
...SelectGroupData
|
|
}
|
|
}
|
|
}
|