mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
chore(mito): nit avoid clone the batch object on inverted index building (#7388)
fix: avoid clone the batch object on inverted index building Signed-off-by: lyang24 <lanqingy93@gmail.com>
This commit is contained in:
@@ -660,8 +660,8 @@ impl IndexBuildTask {
|
||||
// TODO(SNC123): optimize index batch
|
||||
loop {
|
||||
match parquet_reader.next_batch().await {
|
||||
Ok(Some(batch)) => {
|
||||
indexer.update(&mut batch.clone()).await;
|
||||
Ok(Some(mut batch)) => {
|
||||
indexer.update(&mut batch).await;
|
||||
}
|
||||
Ok(None) => break,
|
||||
Err(e) => {
|
||||
|
||||
Reference in New Issue
Block a user