-
Notifications
You must be signed in to change notification settings - Fork 625
Use path length to skip scanning subcollections #3192
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
Conversation
Binary Size ReportAffected SDKs
Test Logs
NotesHead commit (adfc5ddc) is created by Prow via merging commits: 9e5c8e1 0f56227. |
Coverage ReportAffected SDKs
Test Logs
NotesHTML coverage reports can be produced locally with Head commit (adfc5ddc) is created by Prow via merging commits: 9e5c8e1 0f56227. |
|
||
String prefixPath = EncodedPath.encode(prefix); | ||
String prefixSuccessorPath = EncodedPath.prefixSuccessor(prefixPath); | ||
Object[] bindVars = new Object[3 + (FieldIndex.IndexOffset.NONE.equals(offset) ? 0 : 6)]; |
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.
Give FieldIndex.IndexOffset.NONE.equals(offset)
a name?
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.
Done
@@ -607,6 +629,35 @@ private void rewriteCanonicalIds() { | |||
}); | |||
} | |||
|
|||
/** Fill the remote_document's path_length column. */ |
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.
Ultranit: Fills
or Populates
.
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.
Done
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.
Thanks for the review
|
||
String prefixPath = EncodedPath.encode(prefix); | ||
String prefixSuccessorPath = EncodedPath.prefixSuccessor(prefixPath); | ||
Object[] bindVars = new Object[3 + (FieldIndex.IndexOffset.NONE.equals(offset) ? 0 : 6)]; |
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.
Done
@@ -607,6 +629,35 @@ private void rewriteCanonicalIds() { | |||
}); | |||
} | |||
|
|||
/** Fill the remote_document's path_length column. */ |
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.
Done
This is a new version of #3173 that uses a "path segment count" to also skip scanning subcollections. The main benefit is that it stores less data.