Skip to content

Conversation

@RobertGlobant20
Copy link
Contributor

Purpose

With this change only will be executing the DefaultAutocompleteCandidates functionality only once at Dynamo startup, then when a graph is loaded won't be executed.

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Release Notes

With this change only will be executing the DefaultAutocompleteCandidates functionality only once at Dynamo startup, then when a graph is loaded won't be executed.

Reviewers

@QilongTang

FYIs

With this change only will be executing the DefaultAutocompleteCandidates functionality only once at Dynamo startup and when a graph is loaded won't be executed anymore.
With this change only will be executing the DefaultAutocompleteCandidates functionality only once at Dynamo startup and when a graph is loaded won't be executed anymore.
@github-actions
Copy link

UI Smoke Tests

Test: success. 2 passed, 0 failed.
TestComplete Test Result
Workflow Run: UI Smoke Tests
Check: UI Smoke Tests - net8.0

@QilongTang QilongTang added this to the 3.1 milestone Apr 11, 2024
@QilongTang
Copy link
Contributor

Hi @RobertGlobant20 LGTM, can you demonstrate the performance improvement also as part of this PR?

@RobertGlobant20
Copy link
Contributor Author

Hi @RobertGlobant20 LGTM, can you demonstrate the performance improvement also as part of this PR?

I'm still trying to get the performance improvement numbers, basically the problem is that improvement is in the range of seconds but when I run dotTrace and Dynamo opening a dyn file, the loading time has a lot of variation (between each sample) so is hard to show the performance improvement.

@QilongTang
Copy link
Contributor

Hi @RobertGlobant20 LGTM, can you demonstrate the performance improvement also as part of this PR?

I'm still trying to get the performance improvement numbers, basically the problem is that improvement is in the range of seconds but when I run dotTrace and Dynamo opening a dyn file, the loading time has a lot of variation (between each sample) so is hard to show the performance improvement.

Maybe use the timer to time the time spent on searching on each of the predefined keyword in the query, we are saving that much of time with each workspace open

@RobertGlobant20
Copy link
Contributor Author

Hi @RobertGlobant20 LGTM, can you demonstrate the performance improvement also as part of this PR?

I'm still trying to get the performance improvement numbers, basically the problem is that improvement is in the range of seconds but when I run dotTrace and Dynamo opening a dyn file, the loading time has a lot of variation (between each sample) so is hard to show the performance improvement.

Maybe use the timer to time the time spent on searching on each of the predefined keyword in the query, we are saving that much of time with each workspace open

I've used a StopWatch timer to get the time consumed when executing the Search for DefaultNodeAutocompleteCandidates, as you can see with my fix we are saving around 5 seconds due that the Search is executed only once (when Dynamo opens is executed two times and when a graph is opened is executed another two times).
image

@QilongTang QilongTang merged commit 30e7c0d into DynamoDS:master Apr 12, 2024
@QilongTang
Copy link
Contributor

@RobertGlobant20 Please also cherry-pick this

RobertGlobant20 added a commit to RobertGlobant20/Dynamo that referenced this pull request Apr 12, 2024
* DYN-6769 Improving Dynamo Load Graph

With this change only will be executing the DefaultAutocompleteCandidates functionality only once at Dynamo startup and when a graph is loaded won't be executed anymore.

* DYN-6769 Improving Dynamo Load Graph

With this change only will be executing the DefaultAutocompleteCandidates functionality only once at Dynamo startup and when a graph is loaded won't be executed anymore.
QilongTang pushed a commit that referenced this pull request Apr 14, 2024
* DYN-6769 Improving Dynamo Load Graph

With this change only will be executing the DefaultAutocompleteCandidates functionality only once at Dynamo startup and when a graph is loaded won't be executed anymore.

* DYN-6769 Improving Dynamo Load Graph

With this change only will be executing the DefaultAutocompleteCandidates functionality only once at Dynamo startup and when a graph is loaded won't be executed anymore.
QilongTang added a commit that referenced this pull request Apr 14, 2024
RobertGlobant20 added a commit to RobertGlobant20/Dynamo that referenced this pull request Apr 15, 2024
QilongTang pushed a commit that referenced this pull request Apr 15, 2024
RobertGlobant20 added a commit to RobertGlobant20/Dynamo that referenced this pull request Apr 15, 2024
* DYN-6769 Improving Dynamo Load Graph

With this change only will be executing the DefaultAutocompleteCandidates functionality only once at Dynamo startup and when a graph is loaded won't be executed anymore.

* DYN-6769 Improving Dynamo Load Graph

With this change only will be executing the DefaultAutocompleteCandidates functionality only once at Dynamo startup and when a graph is loaded won't be executed anymore.
reddyashish pushed a commit that referenced this pull request Apr 24, 2024
* DYN-6769 Improving Dynamo Load Graph II (#15108)

* DYN-6769 Improving Dynamo Load Graph

With this change only will be executing the DefaultAutocompleteCandidates functionality only once at Dynamo startup and when a graph is loaded won't be executed anymore.

* DYN-6769 Improving Dynamo Load Graph

With this change only will be executing the DefaultAutocompleteCandidates functionality only once at Dynamo startup and when a graph is loaded won't be executed anymore.

* DYN-6769 Improving Dynamo Load Graph II - 2

Instead of using a static Dictionary now I will be using a normal instance that will be initialized in DynamoViewModel and pass it to NodeAutoCompleteSearchViewModel, in this case we are also confirming that only be executed once.

* DYN-6769 Improving Dynamo Load Graph II - 2

Disabling the DefaultNodeAutocomplete functionality when Dynamo is in ServiceMode.

* DYN-6769 Improving Dynamo Load Graph II

Marking the test RemovePIIDataFromWorkspace as Failure
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