-
Notifications
You must be signed in to change notification settings - Fork 898
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
Add bloom filter to existence filter and watchFilters spec builder #6839
Add bloom filter to existence filter and watchFilters spec builder #6839
Conversation
|
@@ -769,18 +770,19 @@ export class SpecBuilder { | |||
return this; | |||
} | |||
|
|||
watchFilters(queries: Query[], ...docs: DocumentKey[]): this { |
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.
Original watchFilters
accept an array of targetIds (limited to only 1 targetId), and spread operator to pass in unlimited number of docs(only to get count later on). These will be flattened into an array(SpecWatchFilter
), and saved into currentStep. When processing, the number on 0 index is targetId, all others will contribute to count.
updated the watchFilters
to accept array of targetIds, array of docs(default to empty array), and an optional bloom filter.
updated the SpecWatchFilter
to be an object instead of an array.
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected Products
Test Logs |
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 great! Just two extremely minor comments.
Note: The logic for using bloom filter and skipping full re-query is not implemented yet.