mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-25 08:58:26 +00:00
perf(ui): reduce data fetched by siblings in lineage (#5308)
This commit is contained in:
parent
5f0c554ab5
commit
0fc8a65cda
@ -141,25 +141,6 @@ fragment lineageNodeProperties on EntityWithRelationships {
|
||||
}
|
||||
}
|
||||
|
||||
fragment relationshipFieldsWithoutSiblings on EntityWithRelationships {
|
||||
...lineageNodeProperties
|
||||
... on Dataset {
|
||||
siblings {
|
||||
isPrimary
|
||||
siblings {
|
||||
urn
|
||||
type
|
||||
}
|
||||
}
|
||||
}
|
||||
upstream: lineage(input: { direction: UPSTREAM, start: 0, count: 100 }) {
|
||||
...leafLineageResults
|
||||
}
|
||||
downstream: lineage(input: { direction: DOWNSTREAM, start: 0, count: 100 }) {
|
||||
...leafLineageResults
|
||||
}
|
||||
}
|
||||
|
||||
fragment relationshipFields on EntityWithRelationships {
|
||||
...lineageNodeProperties
|
||||
... on Dataset {
|
||||
@ -168,7 +149,7 @@ fragment relationshipFields on EntityWithRelationships {
|
||||
siblings {
|
||||
urn
|
||||
type
|
||||
...relationshipFieldsWithoutSiblings
|
||||
...lineageNodeProperties
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -222,7 +203,7 @@ query getEntityLineage($urn: String!) {
|
||||
siblings {
|
||||
urn
|
||||
type
|
||||
...relationshipFieldsWithoutSiblings
|
||||
...lineageNodeProperties
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user