-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: make ListKV non-blocking by returning stream directly (#16868)
perf: make ListKV non-blocking by returning stream directly Return Stream to client instead of collecting results into Vec first. This change eliminates unnecessary buffering of ListKV results in databend-meta server, reducing memory usage and improving response times. The direct streaming approach better matches current usage patterns and removes legacy collection behavior. Although a large ListKV response body won't block the databend-meta server, but it will still block on the client side.
- Loading branch information
1 parent
ed6a0c7
commit 357404c
Showing
4 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters