-
Notifications
You must be signed in to change notification settings - Fork 348
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: add mysql kvbackend #5528
base: main
Are you sure you want to change the base?
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
5deaa0f
to
855d81a
Compare
16335c5
to
b535215
Compare
5328ee4
to
1dc0b04
Compare
Bench results (roughly equals to postgresql before #5497 optim, seems we can also have a cached plan optim if possible. |
48a9522
to
8badf75
Compare
8badf75
to
bea17c8
Compare
fb24b10
to
9513195
Compare
MySqlTemplateSet { | ||
table_name: table_name.to_string(), | ||
create_table_statement: format!( | ||
"CREATE TABLE IF NOT EXISTS {table_name}(k VARBINARY(3072) PRIMARY KEY, v BLOB);", |
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.
Is VARBINARY(3072)
long enough
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.
Not sure actually. Do we need to have a look to the max length of all possible keys? It's the longest in mysql.
c8a3772
to
73ca167
Compare
"CREATE TABLE IF NOT EXISTS {table_name}(k VARBINARY(3072) PRIMARY KEY, v BLOB);", | ||
), | ||
range_template: RangeTemplate { | ||
point: format!("SELECT k, v FROM {table_name} WHERE k = ?"), |
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.
point: format!("SELECT k, v FROM {table_name} WHERE k = ?"), | |
point: format!("SELECT k, v FROM {table_name} WHERE k = ?;"), |
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.
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
#5494
What's changed and what's your intention?
As title.
PR Checklist
Please convert it to a draft if some of the following conditions are not met.