-
Notifications
You must be signed in to change notification settings - Fork 95
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
Support for composite indexes #376
Conversation
22206f7
to
d65c079
Compare
Codecov Report
@@ Coverage Diff @@
## main #376 +/- ##
==========================================
+ Coverage 68.53% 68.80% +0.26%
==========================================
Files 74 74
Lines 7479 7716 +237
==========================================
+ Hits 5126 5309 +183
- Misses 1678 1717 +39
- Partials 675 690 +15
Continue to review full report at Codecov.
|
5ff11fe
to
ebfd78c
Compare
Codecov Report
@@ Coverage Diff @@
## main #376 +/- ##
==========================================
- Coverage 68.53% 67.95% -0.59%
==========================================
Files 74 75 +1
Lines 7479 7805 +326
==========================================
+ Hits 5126 5304 +178
- Misses 1678 1800 +122
- Partials 675 701 +26
Continue to review full report at Codecov.
|
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.
I'm really excited about this, thanks @jhchabran !
I'm approving to unblock, feel free to merge once you feel it's ready
// what the index says this node type must be | ||
typ := idx.Info.Types[i] | ||
|
||
fno.v, ok, err = operandCanUseIndex(typ, fno.path, info.FieldConstraints, fno.v) |
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.
This can be removed as it's already done above right?
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.
We cannot, because the only other one is just for the primary key because it builds the candidate on the fly.
Co-authored-by: Asdine El Hrychy <[email protected]>
This pull-request adds support for composite indexes. It uses
document.Array
to wrap the multiple values into one for the index stores. The changes are not that large as the line changes count suggests, this is mainly due to having added a lot of table tests on the indexes.I have also rewritten the tests for the index iteration methods, which are now quite exhaustive.
The Benchmarks are here and are quite good (0% change on simple indexes).