-
Notifications
You must be signed in to change notification settings - Fork 752
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
Cache: Query result cache #4521
Labels
Comments
/assignme |
cc @Chasen-Zhang this may help the issues we talked yesterday |
14 tasks
cc @drmingdrmer |
The requirement for query result cache and the requirement for data block cache is different:
AFAIK, these two goals may conflict with each other:
|
Merged
This issue have been moved to v0.9 |
The result cache is finished but not used yet, let's close. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Background
For a read, the main flow is:
With the query result cache, we can do:
query_id
read_plan
), and calculate the fingerprint:source_plan_id
/query_id/source_plan_id/result
, get and return the result.Where the cache stored
Storage in the S3, path is
/<bucket>/<tenant>/result/cache/
, and the user can download it.How to calculate the fingerprint
query_id
need based on the AST?select * from t1 where a>1
fingerprint is sameselect * from t1 where a>1 and 1=1
source_plan_id
based on the partition file name and the file offsetThe text was updated successfully, but these errors were encountered: