Skip to content
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(query): query result cache #10042

Merged
merged 9 commits into from
Feb 21, 2023

Conversation

RinChanNOWWW
Copy link
Contributor

@RinChanNOWWW RinChanNOWWW commented Feb 14, 2023

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

Implement the basic query result cache.

More details about the design can be found in the RFC.

Pipeline:

             ┌─────────┐ 1  ┌─────────┐ 1
             │         ├───►│         ├───►Dummy───►Downstream
Upstream────►│Duplicate│ 2  │         │ 3
             │         ├───►│         ├───►Dummy───►Downstream
             └─────────┘    │         │
                            │ Shuffle │
             ┌─────────┐ 3  │         │ 2  ┌─────────┐
             │         ├───►│         ├───►│  Write  │
Upstream────►│Duplicate│ 4  │         │ 4  │ Result  │
             │         ├───►│         ├───►│  Cache  │
             └─────────┘    └─────────┘    └─────────┘

@vercel
Copy link

vercel bot commented Feb 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated
databend ⬜️ Ignored (Inspect) Feb 21, 2023 at 6:55AM (UTC)

@RinChanNOWWW RinChanNOWWW mentioned this pull request Feb 14, 2023
11 tasks
@mergify mergify bot added the pr-feature this PR introduces a new feature to the codebase label Feb 14, 2023
@RinChanNOWWW RinChanNOWWW force-pushed the query-result-cache branch 4 times, most recently from 78581da to 1ccae9e Compare February 17, 2023 14:55
@RinChanNOWWW
Copy link
Contributor Author

Almost ready for review.

@RinChanNOWWW
Copy link
Contributor Author

Rely on #10127.

@RinChanNOWWW RinChanNOWWW force-pushed the query-result-cache branch 5 times, most recently from 6f0d635 to 0e579d6 Compare February 20, 2023 09:55
@RinChanNOWWW RinChanNOWWW marked this pull request as ready for review February 21, 2023 01:36
@RinChanNOWWW RinChanNOWWW force-pushed the query-result-cache branch 2 times, most recently from 937fd45 to 64b7b5c Compare February 21, 2023 04:55
Fix default value.

Fix unit test and enable `tolerate_inconsistent` setting.

Disable query result cacahe for multi tables.
@mergify mergify bot merged commit 6a17159 into databendlabs:main Feb 21, 2023
@RinChanNOWWW RinChanNOWWW deleted the query-result-cache branch February 21, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature this PR introduces a new feature to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants