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

TTL=0 data aka flow-only data ingestion #5033

Open
sunng87 opened this issue Nov 20, 2024 · 4 comments
Open

TTL=0 data aka flow-only data ingestion #5033

sunng87 opened this issue Nov 20, 2024 · 4 comments
Assignees
Labels
C-enhancement Category Enhancements

Comments

@sunng87
Copy link
Member

sunng87 commented Nov 20, 2024

What type of enhancement is this?

API improvement

What does the enhancement do?

From one of our key user who only wants to generate derived data without persist original data. We will need to provide a special case for this type of TTL=0 data: feed it to flow and drop it before entering memtable.

Implementation challenges

No response

@sunng87 sunng87 added the C-enhancement Category Enhancements label Nov 20, 2024
@killme2008
Copy link
Contributor

I think we can design a virtual table for such cases just like

create table monitor(ts timestamp time index, cpu double) with(engine='virtual');

It serves solely as an ingestion endpoint and a source for the flow engine, but cannot be queried.

@discord9 discord9 self-assigned this Nov 20, 2024
@sunng87
Copy link
Member Author

sunng87 commented Nov 21, 2024

I think ttl=0 is a better abstraction. We'd better not to introduce new concept unless it's necessary.

@killme2008
Copy link
Contributor

I agree, but if we can implement the ttl=0 without consuming any memory, that would be better. Just drop the write requests before they reach the memtable, maybe we don't create any memtables for such tables.

@killme2008
Copy link
Contributor

This feature should be prioritized as another user requires it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category Enhancements
Projects
None yet
Development

No branches or pull requests

3 participants