feat (pg): introduce edge start/end with kind filter index - BED-7853#58
feat (pg): introduce edge start/end with kind filter index - BED-7853#58zinic merged 1 commit intoSpecterOps:mainfrom
Conversation
WalkthroughReplaced single-column B-tree indexes on Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…d alongside the edge kind to accelerate lookups; clean up old index
StephenHinck
left a comment
There was a problem hiding this comment.
Would you mind indicating in the PR description that we also dropped these indices? Otherwise, this looks good.
Description
Introduce an index that accelerates
start_idandkind_idfilters for edge lookups. This is one of the most common lookups during traversal.This includes some over-eager index removal that are only adding to the write-amplification problem. The
graph_idindexes are covered by thegraph_idcolumn being part of the partition key.Resolves: BED-7853
Type of Change
Testing
go test -tags manual_integration ./integration/...)Screenshots (if appropriate):
Driver Impact
drivers/pg)drivers/neo4j)Checklist
go.mod/go.sumare up to date if dependencies changedSummary by CodeRabbit