-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[ENH] Add cache for FE with no invalidation #3587
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
[ENH] Add cache for FE with no invalidation #3587
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@@ -539,3 +540,9 @@ where | |||
V: Clone + Send + Sync + Weighted + StorageValue + 'static, | |||
{ | |||
} | |||
|
|||
impl crate::Weighted for CollectionAndSegments { | |||
fn weight(&self) -> usize { |
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 should default this to 1 tbh
.await | ||
.map_err(|_| QueryError::CollectionSegments)?; | ||
.map_err(|_| QueryError::CollectionSegments)? |
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 error name seems hard to understand
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 good to me
Would prefer if we rename cache_config to be concrete type, encapsulate cache, and see if we can expose fetch()
6539292
to
5d08184
Compare
6d090e3
to
9cc5635
Compare
5d08184
to
dc66d0d
Compare
9cc5635
to
67f19fe
Compare
67f19fe
to
4759cfd
Compare
Description of changes
Summarize the changes made by this PR.
Test plan
How are these changes tested?
pytest
for python,yarn test
for js,cargo test
for rustDocumentation Changes
None