-
Notifications
You must be signed in to change notification settings - Fork 329
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(flow): use batch mode for flow #4599
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 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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
|
48063c0
to
9ef585c
Compare
403c12f
to
b4678e2
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4599 +/- ##
==========================================
- Coverage 84.81% 84.51% -0.30%
==========================================
Files 1109 1114 +5
Lines 200016 200894 +878
==========================================
+ Hits 169637 169787 +150
- Misses 30379 31107 +728 |
140781b
to
446314e
Compare
added some sqlness testcase for flow |
445d854
to
1d9a0b8
Compare
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.
Rest LGTM
* generic bundle trait * feat: impl get/let * fix: drop batch * test: tumble batch * feat: use batch eval flow * fix: div use arrow::div not mul * perf: not append batch * perf: use bool mask for reduce * perf: tiny opt * perf: refactor slow path * feat: opt if then * fix: WIP * perf: if then * chore: use trace instead * fix: reduce missing non-first batch * perf: flow if then using interleave * docs: add TODO * perf: remove unnecessary eq * chore: remove unused import * fix: run_available no longer loop forever * feat: blocking on high input buf * chore: increase threhold * chore: after rebase * chore: per review * chore: per review * fix: allow empty values in reduce&test * tests: more flow doc example tests * chore: per review * chore: per review
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
most of adds/deletes are just refactor and tests, core changes are only about 300 lines of code
reduce.rs
's reduce operator to be more efficient(only about 300 lines of code)debug
log in flow totrace
optimize flow to reduce cpu usage from 100% to 2.6%, and hardly any impact on tsbs write
before(100% cpu) flamegraph:
after(1~2% cpu) flamegraph:
Checklist