Storage: Query stats within a namespace (#97403)

This commit is contained in:
Ryan McKinley
2024-12-05 13:58:13 +03:00
committed by GitHub
parent 3724ffd858
commit 8165258a2d
12 changed files with 64 additions and 7 deletions
@@ -0,0 +1,14 @@
SELECT
`namespace`,
`group`,
`resource`,
COUNT(*),
MAX(`resource_version`)
FROM `resource`
WHERE 1 = 1
AND `namespace` = 'default'
GROUP BY
`namespace`,
`group`,
`resource`
;