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

[master < T1246] Add index statistics for better query planning #812

Merged
merged 20 commits into from
Mar 30, 2023

Conversation

Josipmrden
Copy link
Contributor

The PR concerns providing more information to indexes which then can be used optimally in query planning, to make better decisions when to use one index over the other. It is only scoped to label property indexes.

@Josipmrden Josipmrden added this to the v2.7.0 milestone Feb 28, 2023
@Josipmrden Josipmrden self-assigned this Feb 28, 2023
@Josipmrden Josipmrden marked this pull request as draft February 28, 2023 12:06
@Josipmrden Josipmrden changed the title Add index statistics for better query planning [E217 < T1246] Add index statistics for better query planning Mar 7, 2023
@as51340 as51340 self-assigned this Mar 14, 2023
@as51340 as51340 marked this pull request as ready for review March 16, 2023 13:35
@as51340 as51340 requested a review from jbajic March 16, 2023 13:38
@as51340 as51340 changed the base branch from E217-index-optimization-graph-analyzer to master March 17, 2023 10:39
@as51340 as51340 changed the title [E217 < T1246] Add index statistics for better query planning [master < T1246] Add index statistics for better query planning Mar 17, 2023
Copy link
Contributor

@antoniofilipovic antoniofilipovic left a comment

Choose a reason for hiding this comment

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

I need to take look at tests still, let me know when you check comments, we can discuss what makes sense to change.

src/query/frontend/ast/cypher_main_visitor.cpp Outdated Show resolved Hide resolved
src/query/plan/rewrite/index_lookup.hpp Outdated Show resolved Hide resolved
src/query/plan/rewrite/index_lookup.hpp Outdated Show resolved Hide resolved
src/query/interpreter.cpp Outdated Show resolved Hide resolved
src/utils/math.hpp Outdated Show resolved Hide resolved
src/query/plan/rewrite/index_lookup.hpp Outdated Show resolved Hide resolved
src/query/interpreter.cpp Outdated Show resolved Hide resolved
src/query/interpreter.cpp Outdated Show resolved Hide resolved
src/query/interpreter.cpp Outdated Show resolved Hide resolved
src/query/interpreter.cpp Outdated Show resolved Hide resolved
src/utils/math.hpp Outdated Show resolved Hide resolved
src/storage/v2/indices.cpp Show resolved Hide resolved
src/storage/v2/indices.cpp Outdated Show resolved Hide resolved
src/storage/v2/storage.hpp Show resolved Hide resolved
src/storage/v2/storage.hpp Show resolved Hide resolved
src/query/plan/rewrite/index_lookup.hpp Outdated Show resolved Hide resolved
src/query/interpreter.cpp Outdated Show resolved Hide resolved
src/query/interpreter.cpp Outdated Show resolved Hide resolved
src/query/CMakeLists.txt Outdated Show resolved Hide resolved
src/query/interpreter.cpp Outdated Show resolved Hide resolved
@Josipmrden Josipmrden removed their assignment Mar 22, 2023
Copy link
Contributor Author

@Josipmrden Josipmrden left a comment

Choose a reason for hiding this comment

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

Needs change but I'm not in the list of reviewers

src/query/frontend/ast/ast.lcp Show resolved Hide resolved
src/query/plan/rewrite/index_lookup.hpp Outdated Show resolved Hide resolved
src/storage/v2/indices.hpp Outdated Show resolved Hide resolved
src/storage/v2/indices.cpp Show resolved Hide resolved
src/query/interpreter.cpp Outdated Show resolved Hide resolved
src/query/interpreter.cpp Outdated Show resolved Hide resolved
src/query/interpreter.cpp Show resolved Hide resolved
tests/e2e/analyze_graph/optimize_indexes.py Show resolved Hide resolved
@as51340 as51340 requested a review from jbajic March 24, 2023 10:05
src/query/interpreter.cpp Outdated Show resolved Hide resolved
src/query/interpreter.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@antoniofilipovic antoniofilipovic left a comment

Choose a reason for hiding this comment

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

There are some commented things you left, remove that and it should be ready to ship it

@antoniofilipovic antoniofilipovic merged commit 398503d into master Mar 30, 2023
@antoniofilipovic antoniofilipovic deleted the T1246-MG-index-optimization-graph-analyzer branch March 30, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants