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

fix(reduce-variable-hydration): filtering unused variables before hydrating them #18974

Merged
merged 6 commits into from
Jul 17, 2020

Conversation

asalem1
Copy link
Contributor

@asalem1 asalem1 commented Jul 16, 2020

Problem

Over-hydrating variables whenever any queries are run

Solution

Filter out the unused variables before passing in the array of variables to update in order to reduce the graph dependencies that are ultimately returned and reduce the amount of queries that are performed in turn.

hydrate-less-vars

@asalem1 asalem1 requested a review from drdelambre July 16, 2020 20:22
Copy link
Contributor

@drdelambre drdelambre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blocking this over the app state being... too much nonsense. gonna need to offline this to make sure our testing strategy is inline.

}
return []
}

// TODO: make this context aware
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you todid this!

@asalem1 asalem1 requested a review from drdelambre July 17, 2020 17:05
Copy link
Contributor

@drdelambre drdelambre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: this PR is about hydrateVariables which is different than hydrateVars. all of this extra mocking around the time machine is because of the selector we use to grab the current view when in data explorer mode (which does a bunch of stuff just to return the default view), which is currently the convention in our codebase

@asalem1 asalem1 merged commit af61ab7 into master Jul 17, 2020
@asalem1 asalem1 deleted the fix-hydrate-vars branch July 17, 2020 17:30
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.

None yet

2 participants