Skip to content

Commit

Permalink
perf(ui): reduce data fetched by siblings in lineage (#5308)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe-lyons authored Jul 1, 2022
1 parent 5f0c554 commit 0fc8a65
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions datahub-web-react/src/graphql/lineage.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -168,7 +149,7 @@ fragment relationshipFields on EntityWithRelationships {
siblings {
urn
type
...relationshipFieldsWithoutSiblings
...lineageNodeProperties
}
}
}
Expand Down Expand Up @@ -222,7 +203,7 @@ query getEntityLineage($urn: String!) {
siblings {
urn
type
...relationshipFieldsWithoutSiblings
...lineageNodeProperties
}
}
}
Expand Down

0 comments on commit 0fc8a65

Please sign in to comment.