-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(cubestore): Initial support for kv Cache #5265
Conversation
abade08
to
11a7fea
Compare
6eba544
to
ffbe80f
Compare
Codecov ReportBase: 40.55% // Head: 40.33% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5265 +/- ##
==========================================
- Coverage 40.55% 40.33% -0.22%
==========================================
Files 144 145 +1
Lines 19339 19499 +160
Branches 4901 4947 +46
==========================================
+ Hits 7843 7865 +22
- Misses 11191 11329 +138
Partials 305 305
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
760fef2
to
5930e87
Compare
e9be1c5
to
8f3bdcd
Compare
@@ -1804,15 +1797,15 @@ export class PreAggregations { | |||
|
|||
protected tablesUsedRedisKey(tableName) { | |||
// TODO add dataSource? | |||
return `SQL_PRE_AGGREGATIONS_${this.redisPrefix}_TABLES_USED_${tableName}`; | |||
return this.queryCache.getKey('SQL_PRE_AGGREGATIONS_TABLES_USED', tableName); |
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.
Notice: Key change. I know
08e577e
to
f625c65
Compare
d583fbd
to
811f6fc
Compare
811f6fc
to
7794b8a
Compare
trace!( | ||
"Row exists in secondary index (with TTL) however missing in {:?} table: {}. Compaction problem?", | ||
self, id | ||
); | ||
|
||
continue; |
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.
It's data consistency problem, not compaction (because of get_row_ids_by_index filter out expired ids). I think we should rebuild index at this case, or, at least put TODO
about it here
} | ||
|
||
async fn cache_set(&self, item: CacheItem, nx: bool) -> Result<bool, CubeError> { | ||
self.write_operation_cache(move |db_ref, batch_pipe| { |
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.
Please rename nx
to something more understandable
3213503
to
ecfc0e6
Compare
ecfc0e6
to
d5680cf
Compare
d5680cf
to
72702ff
Compare
Hello!
This PR introduces support for CACHE (key, value) storage in Cubestore + driver for Cube.
Supported commands:
refs #5042
Thanks