๐๐ฎ๐๐ฎ, ๐๐ป๐ฎ๐น๐๐๐ถ๐ฐ๐ & ๐๐. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
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.
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
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.
Tests
Type of change
Related Issues
This change isโ