Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce number of entities fetched to build graph #128

Merged
merged 5 commits into from
Dec 10, 2024

Conversation

travisstebbins
Copy link
Contributor

@travisstebbins travisstebbins commented Dec 9, 2024

What type of PR is this?

What does this PR do / why is it needed ?

Building on the work of #125, in order to further optimize setting up the query builder graph, this PR reduces the number of entities that are fetched to build the minimal graph.

Previously, we fetched all the entities from the LSP and then found the entity for the service/function we were trying to open in order to get its mapping. This PR optimizes performance by using the legend concept tree to get the text location of the service/function we are trying to open so that we can fetch only the entity we need instead of fetching all entities and then finding the one we need.

Which issue(s) this PR fixes:

Fixes #

Other notes for reviewers:

Does this PR introduce a user-facing change?

Service query builder still works:
Service

Function query builder still works:
Function

@travisstebbins travisstebbins marked this pull request as ready for review December 9, 2024 20:58
@travisstebbins travisstebbins requested a review from a team as a code owner December 9, 2024 20:58
@rafaelbey rafaelbey merged commit 5535aea into finos:main Dec 10, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants