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

perf(streaming): optimzie topN cache #13797

Closed
st1page opened this issue Dec 5, 2023 · 0 comments · Fixed by #13832
Closed

perf(streaming): optimzie topN cache #13797

st1page opened this issue Dec 5, 2023 · 0 comments · Fixed by #13832
Assignees
Milestone

Comments

@st1page
Copy link
Contributor

st1page commented Dec 5, 2023

When the streaming TopN cache are deleted to no records, RW will try to scan from the table and fill the cache. But if there is no records in the table or group, TopN cache will scan from the table again and again. It is especially bad when the table has many delete tombstones.
The issue appeared in the groupTopN, the Agg's minput should have been solved with the row count.

@Little-Wallace found in NexMark q9 with temporal filter
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants