jerryshao opened a new issue, #14966:
URL: https://github.com/apache/gravitino/issues/14966

   ### What would you like to be improved?
   
   `Domain#listMembers` / `GET 
/api/metalakes/{metalake}/domains/{domain}/objects` currently expands every 
tagged catalog and schema into the recorded leaf objects under it, then 
resolves effective tags for each leaf to decide membership. On large catalogs 
this is slow. Callers that only need to know what is tagged into a domain also 
get one row per leaf, instead of the catalog or schema that was tagged.
   
   ### How should we improve?
   
   - By default, list only the objects that directly carry the backing tag of 
the domain or a visible subdomain: leaves, catalogs and schemas. A catalog or 
schema is returned once; clients can tell it includes its children from its 
type. Relations are `DIRECT` or `VIA_SUBDOMAIN`, with no per-leaf effective-tag 
resolution.
   - Keep the current leaf expansion, with `DIRECT` / `INHERITED` / 
`VIA_SUBDOMAIN` relations, behind an opt-in `expand` option: REST 
`expand=true`, `DomainMemberFilter.Builder#withExpand`, Python 
`DomainMemberFilter(expand=True)`, and the MCP `list_domain_members` tool.
   - Allow `CATALOG` and `SCHEMA` in the `types` filter without `expand`. 
Object-to-domain lookup stays limited to leaf objects and is unchanged.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to