-
Notifications
You must be signed in to change notification settings - Fork 103
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
[master < T1168] Property lookup caching #1168
Conversation
…/memgraph into property-lookup-caching
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall good job, but some files are present that should not be.
tests/gql_behave/tests/memgraph_V1/features/property_caching.feature
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 💪
Some C++ related comments.
Plus a few places we could maybe gain performance as well. Not sure about them, since I'm missing the big picture. If you want we could jump on a call Monday.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
@vpavicic Release note in the original comment |
Evaluating expressions that contain many same-variable property lookups is slower than optimal because
GetProperty
has linear complexity. This PR attempts to solve that by preloading and caching all properties of the variables that have multiple property lookups; the properties are cached in the execution context.Related to #1159 (SetProperty optimization).
[master < Task] PR
To keep docs changelog up to date, one more thing to do: