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

flush_table function to flush a table's memtable #2899

Closed
killme2008 opened this issue Dec 11, 2023 · 2 comments · Fixed by #3363
Closed

flush_table function to flush a table's memtable #2899

killme2008 opened this issue Dec 11, 2023 · 2 comments · Fixed by #3363
Labels
A-storage Involves code in storage engines C-feature Category Features C-user-experience Category User Experience
Milestone

Comments

@killme2008
Copy link
Contributor

What problem does the new feature solve?

I think the GreptimeDB can provide an SQL function such as:

flush_table('monitor');

to flush a table's memtable as an SST file. It's helpful for DB administrators.

What does the feature do?

Flush a table's memtable as an SST file.

Implementation challenges

No response

@killme2008 killme2008 added C-feature Category Features A-storage Involves code in storage engines Difficulty: Mid C-user-experience Category User Experience labels Dec 11, 2023
@NiwakaDev
Copy link
Collaborator

@killme2008

I'd like to work on this issue.

It's helpful for DB administrators.

When do administrators flush a table? I'd like to know more details for the use case.

@killme2008
Copy link
Contributor Author

@killme2008

I'd like to work on this issue.

That's cool. I already did some research on how to implement it. Appreciated if you want to do it.

It's helpful for DB administrators.

When do administrators flush a table? I'd like to know more details for the use case.

For example, when the memory consumption is too much or just want to migrate some regions, the DBA may want to flush some tables manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-storage Involves code in storage engines C-feature Category Features C-user-experience Category User Experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants